From de4f7ee7676a52d9e416d1f20fb9254f42710f22 Mon Sep 17 00:00:00 2001 From: Wingrez <31106425+wingrez@users.noreply.github.com> Date: Sun, 21 Jan 2024 17:09:05 +0800 Subject: [PATCH] cmd/compile/internal/ssa: fix typo in sccp --- src/cmd/compile/internal/ssa/sccp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/compile/internal/ssa/sccp.go b/src/cmd/compile/internal/ssa/sccp.go index 77a6f50961..d1e62f73c6 100644 --- a/src/cmd/compile/internal/ssa/sccp.go +++ b/src/cmd/compile/internal/ssa/sccp.go @@ -80,7 +80,7 @@ func sccp(f *Func) { // build it early since we rely heavily on the def-use chain later t.buildDefUses() - // pick up either an edge or SSA value from worklilst, process it + // pick up either an edge or SSA value from worklist, process it for { if len(t.edges) > 0 { edge := t.edges[0] @@ -145,7 +145,7 @@ func equals(a, b lattice) bool { return true } -// possibleConst checks if Value can be fold to const. For those Values that can +// possibleConst checks if Value can be folded to const. For those Values that can // never become constants(e.g. StaticCall), we don't make futile efforts. func possibleConst(val *Value) bool { if isConst(val) {