[llvm] [VectorCombine] Do not try to operate on OperandBundles. (PR #111635)

David Green via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 03:09:34 PDT 2024


================
@@ -2039,6 +2039,8 @@ bool VectorCombine::foldShuffleToIdentity(Instruction &I) {
         continue;
       } else if (auto *II = dyn_cast<IntrinsicInst>(FrontU);
                  II && isTriviallyVectorizable(II->getIntrinsicID())) {
+        if (II->hasOperandBundles())
----------------
davemgreen wrote:

I've updated to check both the first lane and the others, in case the intrinsic is different.

https://github.com/llvm/llvm-project/pull/111635


More information about the llvm-commits mailing list