This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH]: Fold (A / A) to 1.0 (take 2)


Others have already suggested just returning 1 and using
omit_one_operand.

Sorry for pointing this out too late.


You need omit_two_operands, not omit_one_operand, so that the side effects are executed twice.

Paolo


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