Revert: [RTL ifcvt] Transform (X == CST) ? -CST : Y into (X == CST) ? -X : Y when...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Mon, 3 Oct 2016 09:28:28 +0000 (09:28 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Mon, 3 Oct 2016 09:28:28 +0000 (09:28 +0000)
commitb44a42cfab6a2c7e25b1665a89e2bb423e47e677
tree8f362ab3b0099a6f5497e474788b2812de749839
parentf41f1ceba6d40fe50f49dcb1b45af37997cb7c20
Revert: [RTL ifcvt] Transform (X == CST) ? -CST : Y into (X == CST) ? -X : Y when conditional negation is available

Revert
2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* ifcvt.c (noce_try_avoid_const_materialization): New function.
(noce_process_if_block): Use it.

* gcc.target/aarch64/ifcvt_avoid_const_materialization_1.c: New test.

From-SVN: r240708
gcc/ChangeLog
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/ifcvt_avoid_const_materialization_1.c [deleted file]