cmd/compile: missed opportunity to coalesce loads that compare with constants #43248
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
This could compile on amd64 to something like MOVQ to load the first 8 bytes, TESTQ to check whether the first 8 bytes are zero, MOVL to load the next 4 bytes, CMPL to test those bytes. Instead, we currently generate a series of 12 CMPBs.
Low priority.
The text was updated successfully, but these errors were encountered: