[tuples] Add gimple_has_side_effects

Diego Novillo dnovillo@google.com
Sat Feb 9 09:09:00 GMT 2008


All the uses of TREE_SIDE_EFFECTS in the middle-end do not really make
a lot of sense.  Mostly, it is used for statements that have volatile
operands, operands that have TREE_SIDE_EFFECTS set or for calls that
are not marked pure/const.

Eventually, we have to phase out this ill-defined predicate.  For now,
there is a new gimple_has_side_effects() predicate that centralizes
all these decisions.  This prevents the need for these odd calls to
recalculate_side_effects.  New code that is converted to tuples should
use this new predicate instead of TREE_SIDE_EFFECTS.

Tested on x86.


Diego.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20080208-side-effects.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080209/21bd512e/attachment.txt>


More information about the Gcc-patches mailing list