]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix trivial typos in comments
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 28 May 2018 20:49:40 +0000 (13:49 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 29 May 2018 02:39:52 +0000 (02:39 +0000)
Change-Id: I04880d87e317a1140ec12da6ec5e788991719760
Reviewed-on: https://go-review.googlesource.com/114936
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/ssa/branchelim.go
src/cmd/compile/internal/ssa/gen/generic.rules

index 1967fb93febfd1eb1c1f509c7431c7522c11db28..d9dcaf844430de9bfcc40c3e76f8880511e63df1 100644 (file)
@@ -4,7 +4,7 @@
 
 package ssa
 
-// branchelim tries to elminiate branches by
+// branchelim tries to eliminate branches by
 // generating CondSelect instructions.
 //
 // Search for basic blocks that look like
index 76212c0866853500e0119bafbae97b8d5edc51be..7931aa7f06d2f3bbea449724ae94fa80788ac431 100644 (file)
 // (Mod64u x y) is always between 0 (inclusive) and y (exclusive).
 (IsInBounds (Mod32u _ y) y) -> (ConstBool [1])
 (IsInBounds (Mod64u _ y) y) -> (ConstBool [1])
-// Right shifting a unsigned number limits its value.
+// Right shifting an unsigned number limits its value.
 (IsInBounds (ZeroExt8to64  (Rsh8Ux64  _ (Const64 [c]))) (Const64 [d])) && 0 < c && c <  8 && 1<<uint( 8-c)-1 < d -> (ConstBool [1])
 (IsInBounds (ZeroExt8to32  (Rsh8Ux64  _ (Const64 [c]))) (Const32 [d])) && 0 < c && c <  8 && 1<<uint( 8-c)-1 < d -> (ConstBool [1])
 (IsInBounds (ZeroExt8to16  (Rsh8Ux64  _ (Const64 [c]))) (Const16 [d])) && 0 < c && c <  8 && 1<<uint( 8-c)-1 < d -> (ConstBool [1])