ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 9 Nov 2005 21:34:31 +0000 (21:34 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 9 Nov 2005 21:34:31 +0000 (21:34 +0000)
commitc8e90f4053f0e366630c5147d28d4d9c56e56668
treeca883f3b1639764277c88f95e1f44f59c48c0459
parent7ef67393c7454bb93a070d0290b4196c06a93ce8
ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.

* ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
(noce_try_abs): Negate if the comparison is reversed.
Look only one instruction backwards for a REG_EQUAL note.

From-SVN: r106706
gcc/ChangeLog
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ifcvt-fabs-1.c [new file with mode: 0644]