Flaky CSE around pdep mask #477
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
optimization
Milestone
Repro Repo:
https://github.com/damageboy/coreclr-pdep-mask-flaky-cse
Relevant piece of code:
https://github.com/damageboy/coreclr-pdep-mask-flaky-cse/blob/d6bc610c1dd5416f717211676f2fb0b0ce42e3a2/Program.cs#L28-L41
Generated asm:
https://github.com/damageboy/coreclr-pdep-mask-flaky-cse/blob/d6bc610c1dd5416f717211676f2fb0b0ce42e3a2/listing.asm#L15-L66
Issue
This is a very minor tweak for the bug I opened yesterday: #442
Somehow, just moving a few of these expressions around causes the JIT to not perform CSE on the
mask
parameter forPDEP
in a dependable way... (unlike the code I posted on the previous issue).Not sure why this is suddenly happening for such a trivial change compared to the previous listing...
category:cq
theme:cse
skill-level:intermediate
cost:medium
impact:small
The text was updated successfully, but these errors were encountered: