summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-06 23:33:56 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-06 23:33:56 +0000
commit74b00d71449aed51c312c2f8ceed06ba362fb89c (patch)
tree88dbe9dc64b11589685ee2d34e51b138388c0f9d
parent64f3bd690c9bfe6b1a2e713686a91b75be8b41be (diff)
downloadppe42-gcc-74b00d71449aed51c312c2f8ceed06ba362fb89c.tar.gz
ppe42-gcc-74b00d71449aed51c312c2f8ceed06ba362fb89c.zip
* simplify-rtx.c (simplify_binary_operation): Revert last change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45456 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/simplify-rtx.c22
2 files changed, 4 insertions, 22 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 16c65e2b063..4d81bca8544 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2001-09-06 Richard Henderson <rth@redhat.com>
+ * simplify-rtx.c (simplify_binary_operation): Revert last change.
+
+2001-09-06 Richard Henderson <rth@redhat.com>
+
* simplify-rtx.c (simplify_binary_operation): Simplify contents
of CONST.
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 7f358d3ddc4..ea1cc6d285a 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -1275,28 +1275,6 @@ simplify_binary_operation (code, mode, op0, op1)
return simplify_gen_binary (AND, mode, op0,
gen_rtx_NOT (mode, XEXP (op1, 0)));
}
-
- /* Simplify operations with constants containing embedded offsets. */
- if (GET_CODE (op0) == CONST)
- {
- tem = simplify_binary_operation (code, mode, XEXP (op0, 0), op1);
- if (tem)
- {
- if (CONSTANT_P (op1) && ! CONSTANT_P (tem))
- tem = gen_rtx_CONST (mode, tem);
- return tem;
- }
- }
- if (GET_CODE (op1) == CONST)
- {
- tem = simplify_binary_operation (code, mode, op0, XEXP (op1, 0));
- if (tem)
- {
- if (CONSTANT_P (op0) && ! CONSTANT_P (tem))
- tem = gen_rtx_CONST (mode, tem);
- return tem;
- }
- }
break;
case MULT:
OpenPOWER on IntegriCloud