[Bug middle-end/82062] [8 regression] simple conditional expressions no longer folded
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 25 21:53:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82062
--- Comment #14 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Wed Oct 25 21:53:21 2017
New Revision: 254089
URL: https://gcc.gnu.org/viewcvs?rev=254089&root=gcc&view=rev
Log:
PR middle-end/82062
* fold-const.c (operand_equal_for_comparison_p): Also return true
if ARG0 is a simple variant of ARG1 with narrower precision.
(fold_ternary_loc): Always pass unstripped operands to the predicate.
Added:
trunk/gcc/testsuite/gcc.dg/fold-cond-2.c
- copied unchanged from r254037,
trunk/gcc/testsuite/gcc.dg/fold-cond_expr-1.c
trunk/gcc/testsuite/gcc.dg/fold-cond-3.c
Removed:
trunk/gcc/testsuite/gcc.dg/fold-cond_expr-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list