aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorVenkataramanan Kumar <venkataramanan.kumar@amd.com>2015-05-07 10:47:54 +0000
committerVenkataramanan Kumar <vekumar@gcc.gnu.org>2015-05-07 10:47:54 +0000
commit963ba1b266651a71ad1eee55607ea9ee34c1de7c (patch)
treec8fbe3dba20c622db4e0cb8bab0a59de0b34ef62 /gcc
parent465770e43996a13247a918ed510b725f949c1058 (diff)
downloadgcc-963ba1b266651a71ad1eee55607ea9ee34c1de7c.zip
gcc-963ba1b266651a71ad1eee55607ea9ee34c1de7c.tar.gz
gcc-963ba1b266651a71ad1eee55607ea9ee34c1de7c.tar.bz2
combine.c (make_compound_operation): Remove checks for PLUS/MINUS rtx type.
2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com> * combine.c (make_compound_operation): Remove checks for PLUS/MINUS rtx type. From-SVN: r222874
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/combine.c7
2 files changed, 7 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c294b01..50c430a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
+
+ * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
+ rtx type.
+
2015-05-07 Richard Biener <rguenther@suse.de>
PR tree-optimization/66002
diff --git a/gcc/combine.c b/gcc/combine.c
index c04146a..9e3eb03 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -7723,9 +7723,8 @@ extract_left_shift (rtx x, int count)
We try, as much as possible, to re-use rtl expressions to save memory.
IN_CODE says what kind of expression we are processing. Normally, it is
- SET. In a memory address (inside a MEM, PLUS or minus, the latter two
- being kludges), it is MEM. When processing the arguments of a comparison
- or a COMPARE against zero, it is COMPARE. */
+ SET. In a memory address it is MEM. When processing the arguments of
+ a comparison or a COMPARE against zero, it is COMPARE. */
rtx
make_compound_operation (rtx x, enum rtx_code in_code)
@@ -7745,8 +7744,6 @@ make_compound_operation (rtx x, enum rtx_code in_code)
but once inside, go back to our default of SET. */
next_code = (code == MEM ? MEM
- : ((code == PLUS || code == MINUS)
- && SCALAR_INT_MODE_P (mode)) ? MEM
: ((code == COMPARE || COMPARISON_P (x))
&& XEXP (x, 1) == const0_rtx) ? COMPARE
: in_code == COMPARE ? SET : in_code);