From 67fdb0de8656f7c7b76afe8eff614da7bc13b221 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Sun, 19 Jul 2015 15:48:20 -0700 Subject: [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 Reviewed-by: Josh Bleecher Snyder --- src/cmd/compile/internal/ssa/stackalloc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/compile/internal/ssa/stackalloc.go') 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 -- cgit v1.3