Issue 173039
Summary [VectorCombine] foldPermuteOfIntrinsic - support multiple uses of shuffled ops
Labels good first issue, missed-optimization, llvm::vectorcombine
Assignees
Reporter RKSimon
    The "shuffle (intrinsic), (poison/undef)" -> "intrinsic (shuffle)" fold is currently limited by a m_OneUse check:

https://github.com/llvm/llvm-project/blob/ba55ef32ef9214804b421090767a27f14abd9439/llvm/lib/Transforms/Vectorize/VectorCombine.cpp#L3177-L3181

We should try to remove the m_OneUse limits and adjust the NewCost accordingly - similar to what happens in foldShuffleOfCastops

A large portion of this task will be creating test coverage.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to