The mask on the shuffle is for the output, not the input.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
| Paths 
 |  Differential  D114697  
[X86][Costmodel] `getInterleavedMemoryOpCostAVX512()`: masked load can not be folded into a shuffle ClosedPublic Authored by lebedev.ri on Nov 29 2021, 4:15 AM. 
Details Summary The mask on the shuffle is for the output, not the input. 
Diff Detail 
 Event TimelineComment Actions 
 Not very, added. This revision is now accepted and ready to land.Nov 29 2021, 7:16 AM Comment Actions 
 Thank you for the review! Closed by commit rG7e73c2a66a8b: [X86][Costmodel] `getInterleavedMemoryOpCostAVX512()`: masked load can not be… (authored by lebedev.ri).  ·  Explain WhyNov 29 2021, 7:37 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 390362 llvm/lib/Target/X86/X86TargetTransformInfo.cpp
 llvm/test/Analysis/CostModel/X86/masked-interleaved-load-i16.ll
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||