cmd/compile: teach prove about arguments of & expressions #40083
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
The compiler could infer from
x&y != 0
thatx != 0
(andy != 0
). It can use that here, for example, to get rid of the code that deals with thex==0
special case on x86.This currently generates
We could get rid of the
MOVL $64/CMOVQEQ
pair.@zdjones @rasky @josharian
The text was updated successfully, but these errors were encountered: