OSDN Git Service

(fold_truthop): Treat a BIT_AND_EXPR with a constant of one as if it were
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jun 1993 15:05:12 +0000 (15:05 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jun 1993 15:05:12 +0000 (15:05 +0000)
commitb5ab1edd5aad9840e718861e21184509cb0b0d56
treebd82616890a26fef6a8d9b57b2f29c86a7362f68
parent9c81ab93db0d812f4e5c7ac5af1b6dbd24936daa
(fold_truthop): Treat a BIT_AND_EXPR with a constant of one as if it were
surrounded with an NE_EXPR.
(fold): Don't move operation into conditional if it is BIT_{AND,OR}_EXPR with
the constant 1; change it to TRUTH_*_EXPR instead.
When moving things inside conditions, move comparisons as well as binary
operations.
Don't make a SAVE_EXPR when moving things inside conditionals unless the value
would really have been used twice.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4746 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fold-const.c