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] combine: Don't create (set (reg:CC) (compare (reg:CC) (const0)))


On Mon, May 11, 2015 at 11:23:47AM -0600, Jeff Law wrote:
> >	* combine.c (simplify_set): When generating a CC set, if the
> >	source already is in the correct mode, do not wrap it in a
> >	compare.  Simplify the rest of that code.
> Seems reasonable.  Might not hurt to do a little testing on a cc0 target 
> though.

I tested on mn10300, cris, and m68k.  On m68k it triggers while
building libgcc (for 040).  I verified the transform is correct.

I don't have a setup to actually bootstrap or regression check
any cc0 target.  A recurring theme :-(


Segher


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