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]
Other format: [Raw text]

Re: -fno-tree-cselim not working?


>>>>> "Dave" == Dave Korn <dave.korn@artimi.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--".  */

and

   /* Convert "if (test) x = 0;" to "x &= -(test == 0);"  */

Would a patch such as the following be acceptable?

  http://article.gmane.org/gmane.comp.gcc.patches/151261

 Sam
-- 
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/


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