[RTL-ifcvt] PR rtl-optimization/68435 Allow (c ? x++ : x--) form
commit02e832079b06b479ce137d5a65471908dcd5b656
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Nov 2015 09:48:29 +0000 (25 09:48 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Nov 2015 09:48:29 +0000 (25 09:48 +0000)
tree8ed5dd2cf71d54db7868906cf1d7697edd40ef9b
parent3148a974dde6df731b26b58cfc721aa79b2b2d9c
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230859 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68435.c [new file with mode: 0644]