aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-03-18 19:25:58 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-03-18 19:25:58 -0500
commitbb821298b358e86b525b70c646eb643026015d3b (patch)
treed99c51ad61c0a459dc98b204cb27caa1fa67d449
parent8a12c32ded7c9132d2323abf501a31fa6274a3e1 (diff)
downloadgcc-bb821298b358e86b525b70c646eb643026015d3b.zip
gcc-bb821298b358e86b525b70c646eb643026015d3b.tar.gz
gcc-bb821298b358e86b525b70c646eb643026015d3b.tar.bz2
(simplify_if_then_else): Allow for case that condition might no longer
be a condition. From-SVN: r11555
-rw-r--r--gcc/combine.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 33ce6e6..9fe6835 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -4034,6 +4034,10 @@ simplify_if_then_else (x)
SUBST (XEXP (x, 2), true);
temp = true, true = false, false = temp, cond = XEXP (x, 0);
+
+ /* It is possible that the conditional has been simplified out. */
+ true_code = GET_CODE (cond);
+ comparison_p = GET_RTX_CLASS (true_code) == '<';
}
/* If the two arms are identical, we don't need the comparison. */