This is the mail archive of the
mailing list for the GCC project.
Re: -fno-tree-cselim not working?
>>>>> "Dave" == Dave Korn <email@example.com> writes:
Dave> I certainly won't object to any move to prohibit the
Dave> read-conditional-add-write (and related) optimisation(s) when
Dave> compiling with an option that explicitly specifies that we are
Dave> compiling multi-threaded code.
There are two spots I could find in ifcvt.c:
/* Convert "if (test) foo++" into "foo += (test != 0)", and
similarly for "foo--". */
/* Convert "if (test) x = 0;" to "x &= -(test == 0);" */
Would a patch such as the following be acceptable?
Samuel Tardieu -- firstname.lastname@example.org -- http://www.rfc1149.net/