This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: how to fix anti-optimization?


	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
arguments.

	Maybe your change still is safe, but your interpretation of the
macro seems incomplete.

David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]