cmd/compile/internal/ssa: fix typo in sccp

This commit is contained in:
Wingrez 2024-01-21 17:09:05 +08:00 committed by GitHub
parent f19f31f2e7
commit de4f7ee767
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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) {