[llvm] [VectorCombine] Add a cost model for shuffleToIdentity. (PR #93937)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 3 07:15:17 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);
----------------
davemgreen wrote:
I don't think so, it seems fine, and it can be useful to keep the constant splats separate from the splats. The representation change eventually if we support more constants and do not want to keep them as splats.
https://github.com/llvm/llvm-project/pull/93937
More information about the llvm-commits
mailing list