diff options
| author | Keith Randall <khr@golang.org> | 2015-07-19 15:48:20 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2015-07-21 04:34:02 +0000 |
| commit | 67fdb0de8656f7c7b76afe8eff614da7bc13b221 (patch) | |
| tree | ab6cf9659b65557f395dbbe77bc9b9e15e64c10c /src/cmd/compile/internal/ssa/stackalloc.go | |
| parent | 8043f450c170a90de9a04bd801b4f3189ea613ea (diff) | |
| download | go-67fdb0de8656f7c7b76afe8eff614da7bc13b221.tar.xz | |
[dev.ssa] cmd/compile/internal/ssa: use width and sign specific opcodes
Bake the bit width and signedness into opcodes.
Pro: Rewrite rules become easier. Less chance for confusion.
Con: Lots more opcodes.
Let me know what you think. I'm leaning towards this, but I could be
convinced otherwise if people think this is too ugly.
Update #11467
Change-Id: Icf1b894268cdf73515877bb123839800d97b9df9
Reviewed-on: https://go-review.googlesource.com/12362
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/stackalloc.go')
| -rw-r--r-- | src/cmd/compile/internal/ssa/stackalloc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/stackalloc.go b/src/cmd/compile/internal/ssa/stackalloc.go index 0bd64a1a14..5f18acabfd 100644 --- a/src/cmd/compile/internal/ssa/stackalloc.go +++ b/src/cmd/compile/internal/ssa/stackalloc.go @@ -82,8 +82,8 @@ func stackalloc(f *Func) { } } - n = align(n, f.Config.ptrSize) - n += f.Config.ptrSize // space for return address. TODO: arch-dependent + n = align(n, f.Config.PtrSize) + n += f.Config.PtrSize // space for return address. TODO: arch-dependent f.RegAlloc = home f.FrameSize = n |
