how to fix anti-optimization?
Richard Henderson
rth@redhat.com
Wed Sep 12 15:14:00 GMT 2001
On Wed, Sep 12, 2001 at 11:35:00AM -0700, dalej@apple.com wrote:
> The substitution is done in the ARRAY_REF case of expr.c:expand_expr().
> It looks like I could hack this by setting TREE_SIDE_EFFECTS on FP
> constants, but surely that's not the right way to do it. Any better ideas?
If the constant is not LEGITIMATE_CONSTANT_P, make the ARRAY_REF
expand as normal, then tag the resulting memory reference with a
REG_EQUAL note containing the known constant.
r~
More information about the Gcc
mailing list