diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2020-01-23 22:18:30 -0800 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2020-02-21 17:28:10 +0000 |
commit | 1b47fde55c3899ee50e7fab35e151645aba96e9c (patch) | |
tree | ce3c389c8ce8269aedc8d3a6f60ead6e244c77bb /src/cmd/compile/internal/x86 | |
parent | e932f0addc7d764a6bd534979b5cabaf0c1a6ad8 (diff) | |
download | go-1b47fde55c3899ee50e7fab35e151645aba96e9c.tar.gz go-1b47fde55c3899ee50e7fab35e151645aba96e9c.zip |
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>
Diffstat (limited to 'src/cmd/compile/internal/x86')
-rw-r--r-- | src/cmd/compile/internal/x86/ssa.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/x86/ssa.go b/src/cmd/compile/internal/x86/ssa.go index aa68e9163a..0c7e5bdb97 100644 --- a/src/cmd/compile/internal/x86/ssa.go +++ b/src/cmd/compile/internal/x86/ssa.go @@ -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: |