[llvm] [VectorCombine] Add a cost model for shuffleToIdentity. (PR #93937)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 03:16:32 PDT 2024
================
@@ -1803,7 +1811,7 @@ bool VectorCombine::foldShuffleToIdentity(Instruction &I) {
Value *V = IL.first;
return !V || V == FrontV;
})) {
- SplatLeafs.insert(FrontV);
+ ConstLeafs.insert(FrontV);
----------------
artagnon wrote:
Isn't this an ugly special case? Can't you handle constant splats in the cost code?
https://github.com/llvm/llvm-project/pull/93937
More information about the llvm-commits
mailing list