[Bug tree-optimization/85605] Potentially missing optimization under x64 and ARM: seemingly unnecessary branch in codegen
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 2 16:35:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85605
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|x86_64-*-*, i?86-*-*, arm |x86_64-*-*, i?86-*-*, arm,
| |aarch64*-*-*
Component|rtl-optimization |tree-optimization
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There might be a duplicate of this bug already but:
CMP1 ? true : CMP2;
Can be transformed into:
CMP1 | CMP2
This needs PHIOPT to do the optimization, either via match or manually.
More information about the Gcc-bugs
mailing list