aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/rewritedec.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2017-03-29 18:06:04 +0000
committerKeith Randall <khr@golang.org>2017-03-29 18:06:44 +0000
commit68da265c8e6b32753fb5788716953bac16b374c0 (patch)
tree4c6b3f28f91eb910cc5e0d9f8766b8b7abbb37be /src/cmd/compile/internal/ssa/rewritedec.go
parent8295dbda03ef2bfaccb6e2c139f1981d0c69964d (diff)
downloadgo-68da265c8e6b32753fb5788716953bac16b374c0.tar.gz
go-68da265c8e6b32753fb5788716953bac16b374c0.zip
Revert "cmd/compile: automatically handle commuting ops in rewrite rules"
This reverts commit 041ecb697f0e867a2bb0bf219cc2fd5f77057c2e. Reason for revert: Not working on S390x and some 386 archs. I have a guess why the S390x is failing. No clue on the 386 yet. Revert until I can figure it out. Change-Id: I64f1ce78fa6d1037ebe7ee2a8a8107cb4c1db70c Reviewed-on: https://go-review.googlesource.com/38790 Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/rewritedec.go')
-rw-r--r--src/cmd/compile/internal/ssa/rewritedec.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/ssa/rewritedec.go b/src/cmd/compile/internal/ssa/rewritedec.go
index 2be17ef459..2782316c7e 100644
--- a/src/cmd/compile/internal/ssa/rewritedec.go
+++ b/src/cmd/compile/internal/ssa/rewritedec.go
@@ -34,7 +34,7 @@ func rewriteValuedec(v *Value) bool {
return false
}
func rewriteValuedec_OpComplexImag(v *Value) bool {
- // match: (ComplexImag (ComplexMake _ imag))
+ // match: (ComplexImag (ComplexMake _ imag ))
// cond:
// result: imag
for {
@@ -51,7 +51,7 @@ func rewriteValuedec_OpComplexImag(v *Value) bool {
return false
}
func rewriteValuedec_OpComplexReal(v *Value) bool {
- // match: (ComplexReal (ComplexMake real _))
+ // match: (ComplexReal (ComplexMake real _ ))
// cond:
// result: real
for {
@@ -274,7 +274,7 @@ func rewriteValuedec_OpSliceLen(v *Value) bool {
return false
}
func rewriteValuedec_OpSlicePtr(v *Value) bool {
- // match: (SlicePtr (SliceMake ptr _ _))
+ // match: (SlicePtr (SliceMake ptr _ _ ))
// cond:
// result: ptr
for {