This is the mail archive of the
mailing list for the GCC project.
Re: how to fix anti-optimization?
- To: Dale Johannesen <dalej at apple dot com>
- Subject: Re: how to fix anti-optimization?
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Fri, 14 Sep 2001 16:01:49 -0400
- cc: Richard Henderson <rth at redhat dot com>, gcc at gcc dot gnu dot org
GPRs can contain FP values. FP constants can be loaded into GPRs.
Why isn't that be appropriate for LEGITIMATE_CONSTANT_P? The macro is not
a question of which values are valid immediates for FPRs, but for any
registers. easy_fp_constant values can be loaded directly into a GPR
representing SFmode or DFmode. That is what the macro represents.
Given your analysis, it looks like another GCC macro with
overloaded meanings used in too many instances. Presumably we need the
macro to be expanded to have both a mode and a register class as
Maybe your change still is safe, but your interpretation of the
macro seems incomplete.