mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
cmd/compile/internal/ssa: remove not needed parentheses
This commit is contained in:
parent
21a00e030f
commit
d74b0d4d75
1 changed files with 2 additions and 2 deletions
|
@ -664,7 +664,7 @@ func (ft *factsTable) newLimit(v *Value, newLim limit) bool {
|
|||
d |= unsigned
|
||||
}
|
||||
if !isTrue {
|
||||
r ^= (lt | gt | eq)
|
||||
r ^= lt | gt | eq
|
||||
}
|
||||
// TODO: v.Block is wrong?
|
||||
addRestrictions(v.Block, ft, d, v.Args[0], v.Args[1], r)
|
||||
|
@ -697,7 +697,7 @@ func (ft *factsTable) newLimit(v *Value, newLim limit) bool {
|
|||
// But in the signed domain, we can't express the ||
|
||||
// condition, so check if a0 is non-negative instead,
|
||||
// to be able to learn something.
|
||||
r ^= (lt | gt | eq) // >= (index) or > (slice)
|
||||
r ^= lt | gt | eq // >= (index) or > (slice)
|
||||
if ft.isNonNegative(v.Args[0]) {
|
||||
ft.update(v.Block, v.Args[0], v.Args[1], signed, r)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue