[Bug middle-end/85516] [missed-optimization] gcc does not convert multiple compares against constants to a shift+bitmask test
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 25 07:26:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85516
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-04-25
Ever confirmed|0 |1
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
I expected fold_truth_andor to eventually catch this via fold_range_test.
Probably the "bad" association in the testcase prevents this.
Anyway, this is a job for reassoc / if-conversion.
More information about the Gcc-bugs
mailing list