Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: SSA, use CMPconst for write barrier #14587
right now we generate this code for a write barrier test:
We should really do:
One less instruction, no register required.
Figure out a way to fix this. Maybe introduce a new block type BlockWBCheck that takes a memory control value and has 2 successors. It has the CMPx implicit inside it. It would need to be marked as clobbering flags.
If the only use of a load is a CMP with const,
Actually, this transform should be generic
I think having a package global bool that