[RTL-ifcvt] PR rtl-optimization/68506: Fix emitting order of insns in IF-THEN-JOIN...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 27 Nov 2015 09:49:38 +0000 (09:49 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 27 Nov 2015 09:49:38 +0000 (09:49 +0000)
commit14af28ba5aa467556c30cf20a8ee27e83590314f
tree6463d274e25248bb8242dc2712931f48af657065
parentb58d3df29fd0c37a2d5115fc9c708cffcc379ffc
[RTL-ifcvt] PR rtl-optimization/68506: Fix emitting order of insns in IF-THEN-JOIN case

PR rtl-optimization/68506
* ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
blocks.

* gcc.c-torture/execute/pr68506.c: New test.

From-SVN: r231003
gcc/ChangeLog
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr68506.c [new file with mode: 0644]