cmd/compile: use cheaper runtime.writeBarrier check #15245
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
release-blocker
Milestone
The pre-SSA backend checked the value of runtime.writeBarrier with:
The SSA backend uses:
The old version is one instruction and one byte shorter and does not use a register.
I tried and failed to use the old check in CL 21817. Generating flags directly from memory does not play nicely with how we currently handle flags; see Keith's comments.
This issue is so that we don't forget, and to discuss alternative approaches.
The text was updated successfully, but these errors were encountered: