[RTL-ifcvt] PR rtl-optimization/68435 Allow (c ? x++ : x--) form
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 25 Nov 2015 09:48:29 +0000 (09:48 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Wed, 25 Nov 2015 09:48:29 +0000 (09:48 +0000)
commit9b71b2ab84caafd7f32429772745f9b07d85321f
tree8ed5dd2cf71d54db7868906cf1d7697edd40ef9b
parent514c0e7c12d44576796d79079b1ba20844f047b9
[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.

From-SVN: r230859
gcc/ChangeLog
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68435.c [new file with mode: 0644]