This is the mail archive of the gcc-bugs@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]

[Bug rtl-optimization/36884] ifcvt poor optimization


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36884

--- Comment #7 from Steven Bosscher <steven at gcc dot gnu.org> 2012-10-15 07:47:27 UTC ---
(In reply to comment #5)
> Obviously, noce_try_sign_mask does it's work unconditionally and does
> not take into account costs.  It appears that it assumes that cheap 
> barrel shifter is available as on most 32-bit machines.

This can probably be fixed using lshift_cheap_p.  You should move 
lshift_cheap_p to optabs.c and use it in ifcvt.c to see if lshifts
are cheap.


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