diff options
author | Keith Randall <khr@golang.org> | 2020-03-24 16:46:49 +0000 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2020-03-24 19:06:22 +0000 |
commit | e0deacd1c096367ba341b43413ec5ccea8253db2 (patch) | |
tree | 2c930dcbbd0b07f4fcc43e6fd07f3ff0b8b780d2 /src/cmd/compile/internal/ssa/addressingmodes.go | |
parent | f975485ad13d09a828120b573386d15ac669df6a (diff) | |
download | go-e0deacd1c096367ba341b43413ec5ccea8253db2.tar.gz go-e0deacd1c096367ba341b43413ec5ccea8253db2.zip |
Revert "cmd/compile: disable mem+op operations on 386"
This reverts commit CL 224837.
Reason for revert: Reverting partial reverts of 222782.
Update #37881
Change-Id: Ie9bf84d6e17ed214abe538965e5ff03936886826
Reviewed-on: https://go-review.googlesource.com/c/go/+/225217
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/addressingmodes.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/addressingmodes.go | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/src/cmd/compile/internal/ssa/addressingmodes.go b/src/cmd/compile/internal/ssa/addressingmodes.go index 77d14dcfb8..2af8a4d1fc 100644 --- a/src/cmd/compile/internal/ssa/addressingmodes.go +++ b/src/cmd/compile/internal/ssa/addressingmodes.go @@ -204,23 +204,22 @@ var combine = map[[2]Op]Op{ [2]Op{Op386MOVWstoreconst, Op386LEAL2}: Op386MOVWstoreconstidx2, [2]Op{Op386MOVLstoreconst, Op386LEAL1}: Op386MOVLstoreconstidx1, [2]Op{Op386MOVLstoreconst, Op386LEAL4}: Op386MOVLstoreconstidx4, - /* - [2]Op{Op386ADDLload, Op386LEAL4}: Op386ADDLloadidx4, - [2]Op{Op386SUBLload, Op386LEAL4}: Op386SUBLloadidx4, - [2]Op{Op386MULLload, Op386LEAL4}: Op386MULLloadidx4, - [2]Op{Op386ANDLload, Op386LEAL4}: Op386ANDLloadidx4, - [2]Op{Op386ORLload, Op386LEAL4}: Op386ORLloadidx4, - [2]Op{Op386XORLload, Op386LEAL4}: Op386XORLloadidx4, - - [2]Op{Op386ADDLmodify, Op386LEAL4}: Op386ADDLmodifyidx4, - [2]Op{Op386SUBLmodify, Op386LEAL4}: Op386SUBLmodifyidx4, - [2]Op{Op386ANDLmodify, Op386LEAL4}: Op386ANDLmodifyidx4, - [2]Op{Op386ORLmodify, Op386LEAL4}: Op386ORLmodifyidx4, - [2]Op{Op386XORLmodify, Op386LEAL4}: Op386XORLmodifyidx4, - - [2]Op{Op386ADDLconstmodify, Op386LEAL4}: Op386ADDLconstmodifyidx4, - [2]Op{Op386ANDLconstmodify, Op386LEAL4}: Op386ANDLconstmodifyidx4, - [2]Op{Op386ORLconstmodify, Op386LEAL4}: Op386ORLconstmodifyidx4, - [2]Op{Op386XORLconstmodify, Op386LEAL4}: Op386XORLconstmodifyidx4, - */ + + [2]Op{Op386ADDLload, Op386LEAL4}: Op386ADDLloadidx4, + [2]Op{Op386SUBLload, Op386LEAL4}: Op386SUBLloadidx4, + [2]Op{Op386MULLload, Op386LEAL4}: Op386MULLloadidx4, + [2]Op{Op386ANDLload, Op386LEAL4}: Op386ANDLloadidx4, + [2]Op{Op386ORLload, Op386LEAL4}: Op386ORLloadidx4, + [2]Op{Op386XORLload, Op386LEAL4}: Op386XORLloadidx4, + + [2]Op{Op386ADDLmodify, Op386LEAL4}: Op386ADDLmodifyidx4, + [2]Op{Op386SUBLmodify, Op386LEAL4}: Op386SUBLmodifyidx4, + [2]Op{Op386ANDLmodify, Op386LEAL4}: Op386ANDLmodifyidx4, + [2]Op{Op386ORLmodify, Op386LEAL4}: Op386ORLmodifyidx4, + [2]Op{Op386XORLmodify, Op386LEAL4}: Op386XORLmodifyidx4, + + [2]Op{Op386ADDLconstmodify, Op386LEAL4}: Op386ADDLconstmodifyidx4, + [2]Op{Op386ANDLconstmodify, Op386LEAL4}: Op386ANDLconstmodifyidx4, + [2]Op{Op386ORLconstmodify, Op386LEAL4}: Op386ORLconstmodifyidx4, + [2]Op{Op386XORLconstmodify, Op386LEAL4}: Op386XORLconstmodifyidx4, } |