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
{{ message }}
Repository navigation
JIT x64: IsRedundantStackMov ignores EVEX embedded masks, dropping moves after a masked store to a stack local #135004
emitter::IsRedundantStackMov doesn't consider embedded masking on either the current instruction or emitLastIns. A masked store to an address-exposed local reaches it through emitInsStoreInd and emitIns_S_R. If the next instruction is the same mov at the same size, with the same register and slot, it gets dropped.
A full reload is treated as the inverse move. HasSideEffect is false for 64-byte vmovups under EVEX, so this affects 512-bit; the 256-bit reload is kept. A full store hits the "same move" path, which doesn't check side effects, so 256-bit is affected there too.
With src all 1.0 and only lane 0 selected in the mask, Vector512.Sum(*dst) should be -13 and the second method should return 16. Actual values are 32 and -5. Repros on 10.0.12 and main with DOTNET_TieredCompilation=0 (Tiger Lake).
Activity
dotnet-policy-service commentedon Oct 1, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.