]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: remove flags from regMask
authorCherry Zhang <cherryyz@google.com>
Thu, 4 Aug 2016 10:57:34 +0000 (06:57 -0400)
committerCherry Zhang <cherryyz@google.com>
Sun, 7 Aug 2016 03:08:03 +0000 (03:08 +0000)
commit0484052358ffdfb64cd533b3ea55f7c2b9d0b7bd
tree9970070d3ef8a2fbfa441078188b8ba4cf960e5b
parent01ae4b1da4fd38c0cc5f370c958aa67735fdcd40
[dev.ssa] cmd/compile: remove flags from regMask

Reg allocator skips flag-typed values. Flag allocator uses the type
and whether the op has "clobberFlags" set.

Tested on AMD64, ARM, ARM64, 386. Passed 'toolstash -cmp' on AMD64.
PPC64 is coded blindly.

Change-Id: Ib1cc27efecef6a1bb27f7d7ed035a582660d244f
Reviewed-on: https://go-review.googlesource.com/25480
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/flagalloc.go
src/cmd/compile/internal/ssa/gen/386Ops.go
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/gen/ARM64Ops.go
src/cmd/compile/internal/ssa/gen/ARMOps.go
src/cmd/compile/internal/ssa/gen/PPC64Ops.go
src/cmd/compile/internal/ssa/gen/main.go
src/cmd/compile/internal/ssa/op.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/regalloc.go