From c0f27eb3d580c8b9efd73802678eba4c6c9461be Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Wed, 19 Oct 2022 15:53:43 +1100 Subject: cmd/compile/internal/ssa: wire up late lower block function Currently, the lowerBlock function is reused with lateLowerValue, meaning that any block rewriting rules in the late lower pass are silently ignored. Change the late lower pass to actually use the lateLowerBlock function with the lateLowerValue function. Change-Id: Iaac1c2955bb27078378cac50cde3716e79a7d9f8 Reviewed-on: https://go-review.googlesource.com/c/go/+/444335 Run-TryBot: Joel Sing Reviewed-by: David Chase Reviewed-by: Cherry Mui TryBot-Result: Gopher Robot --- src/cmd/compile/internal/ssa/lower.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/compile/internal/ssa/lower.go') diff --git a/src/cmd/compile/internal/ssa/lower.go b/src/cmd/compile/internal/ssa/lower.go index b850ac52e3..df25ac9f1a 100644 --- a/src/cmd/compile/internal/ssa/lower.go +++ b/src/cmd/compile/internal/ssa/lower.go @@ -14,7 +14,7 @@ func lower(f *Func) { func lateLower(f *Func) { // repeat rewrites until we find no more rewrites if f.Config.lateLowerValue != nil { - applyRewrite(f, f.Config.lowerBlock, f.Config.lateLowerValue, removeDeadValues) + applyRewrite(f, f.Config.lateLowerBlock, f.Config.lateLowerValue, removeDeadValues) } } -- cgit v1.2.1