aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-04-21 07:57:42 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-04-21 07:57:42 -0400
commit0e32506c6bec44d0259cc49277ffd9268508351e (patch)
tree69820fb30cf9938900fe96d4bba44f45f4f26c55
parent8aa2a305845a140134be122c618c5c94308b8326 (diff)
downloadgcc-0e32506c6bec44d0259cc49277ffd9268508351e.zip
gcc-0e32506c6bec44d0259cc49277ffd9268508351e.tar.gz
gcc-0e32506c6bec44d0259cc49277ffd9268508351e.tar.bz2
(simplify_logical, case AND): If still an AND, get new values for op0
and op1. From-SVN: r9424
-rw-r--r--gcc/combine.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index f71db78..9d355cb 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -4503,6 +4503,10 @@ simplify_logical (x, last)
if (GET_CODE (x) != AND)
return x;
+
+ if (GET_RTX_CLASS (GET_CODE (x)) == 'c'
+ || GET_RTX_CLASS (GET_CODE (x)) == '2')
+ op0 = XEXP (x, 0), op1 = XEXP (x, 1);
}
/* Convert (A | B) & A to A. */