diff options
author | Cherry Zhang <cherryyz@google.com> | 2016-05-25 09:49:28 -0400 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2016-06-05 03:56:42 +0000 |
commit | e78d90beebbb6fde602ceb3999535ac4b49da295 (patch) | |
tree | adcaf1ade6c8374cc8462764aa22ba3e78636237 /src/cmd/compile/internal/ssa/schedule.go | |
parent | 4636d02244e683a0d9c078a49b4c614bed401d6b (diff) | |
download | go-e78d90beebbb6fde602ceb3999535ac4b49da295.tar.gz go-e78d90beebbb6fde602ceb3999535ac4b49da295.zip |
[dev.ssa] cmd/compile: handle Div, Convert, GetClosurePtr etc. on ARM
This CL adds support of Div, Mod, Convert, GetClosurePtr and 64-bit indexing
support to SSA backend for ARM.
Add tests for 64-bit indexing to cmd/compile/internal/gc/testdata/string_ssa.go.
Tests cmd/compile/internal/gc/testdata/*_ssa.go passed, except compound_ssa.go
and fp_ssa.go.
Progress on SSA for ARM. Still not complete. Essentially the only unsupported
part is floating point.
Updates #15365.
Change-Id: I269e88b67f641c25e7a813d910c96d356d236bff
Reviewed-on: https://go-review.googlesource.com/23542
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/schedule.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/schedule.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/schedule.go b/src/cmd/compile/internal/ssa/schedule.go index bcdc52ae3e..67efd089e3 100644 --- a/src/cmd/compile/internal/ssa/schedule.go +++ b/src/cmd/compile/internal/ssa/schedule.go @@ -99,7 +99,7 @@ func schedule(f *Func) { // Compute score. Larger numbers are scheduled closer to the end of the block. for _, v := range b.Values { switch { - case v.Op == OpAMD64LoweredGetClosurePtr: + case v.Op == OpAMD64LoweredGetClosurePtr || v.Op == OpARMLoweredGetClosurePtr: // We also score GetLoweredClosurePtr as early as possible to ensure that the // context register is not stomped. GetLoweredClosurePtr should only appear // in the entry block where there are no phi functions, so there is no |