This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/68435] [6 Regression] Missed if-conversion optimization
- From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Nov 2015 09:49:01 +0000
- Subject: [Bug rtl-optimization/68435] [6 Regression] Missed if-conversion optimization
- Auto-submitted: auto-generated
- References: <bug-68435-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68435
--- Comment #10 from ktkachov at gcc dot gnu.org ---
Author: ktkachov
Date: Wed Nov 25 09:48:29 2015
New Revision: 230859
URL: https://gcc.gnu.org/viewcvs?rev=230859&root=gcc&view=rev
Log:
[RTL-ifcvt] PR rtl-optimization/68435 Allow (c ? x++ : x--) form
PR rtl-optimization/68435
* ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
for conflicts between a, b and the set destinations.
* gcc.dg/pr68435.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr68435.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ifcvt.c
trunk/gcc/testsuite/ChangeLog