You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd/compile: duplicate some scalar stores in wb blocks
DO NOT SUBMIT
[mailing for initial feedback, needs benchmark numbers]
Duplicate some scalar stores on both halves of a
writeBarrier.enabled block, to reduce branching.
There are other memory ops besides OpVarXXX and OpStore
that we could consider here: OpMove, OpZero, Op*Call,
atomic stores, OpSelect1, OpPhi.
However, OpVarXXX and OpStore are by far the most common,
and they correspond to a fixed number of instructions.
The others are all rare and are either tricky
(OpSelect1, OpPhi, atomic stores) or
correspond to potentially lots of code.
Fixesgolang#19838
Change-Id: I0d5a68c2dfb3b6a6916b92151b3e64df533d4581
0 commit comments