mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: clarify division bounds check optimization
The name of the function should mention division. Eliminate double negatives from the comment describing it. Change-Id: Icef1a5139b3a91b86acb930af97938f5160f7342 Reviewed-on: https://go-review.googlesource.com/c/go/+/217001 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
This commit is contained in:
parent
e932f0addc
commit
1b47fde55c
4 changed files with 9 additions and 7 deletions
|
|
@ -199,7 +199,7 @@ func ssaGenValue(s *gc.SSAGenState, v *ssa.Value) {
|
|||
if v.Op == ssa.Op386DIVL || v.Op == ssa.Op386DIVW ||
|
||||
v.Op == ssa.Op386MODL || v.Op == ssa.Op386MODW {
|
||||
|
||||
if ssa.NeedsFixUp(v) {
|
||||
if ssa.DivisionNeedsFixUp(v) {
|
||||
var c *obj.Prog
|
||||
switch v.Op {
|
||||
case ssa.Op386DIVL, ssa.Op386MODL:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue