cmd/compile: optimize int % powerOfTwo != 0 #34166
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
Milestone
What version of Go are you using?
go version go1.12.7 windows/amd64
What did you do?
What did you expect to see?
The two conditions in the
if
statements compile to the same code.What did you see instead?
The first condition is compiled to:
The second condition is compiled to:
The text was updated successfully, but these errors were encountered: