projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a12c32
)
(simplify_if_then_else): Allow for case that condition might no longer
author
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 19 Mar 1996 00:25:58 +0000
(19:25 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 19 Mar 1996 00:25:58 +0000
(19:25 -0500)
be a condition.
From-SVN: r11555
gcc/combine.c
patch
|
blob
|
history
diff --git
a/gcc/combine.c
b/gcc/combine.c
index
33ce6e6
..
9fe6835
100644
(file)
--- 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. */