[llvm] [VPlan] Don't fold live ins with both scalar and vector operands (PR #154067)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 18 04:03:57 PDT 2025


================
@@ -976,14 +976,9 @@ static Value *tryToFoldLiveIns(const VPRecipeBase &R, unsigned Opcode,
                           RFlags.getGEPNoWrapFlags());
   }
   case VPInstruction::PtrAdd:
-  case VPInstruction::WidePtrAdd:
----------------
fhahn wrote:

Do we need this? If both are constants, they both should be scalars, and the fold should just work, and the result re-broadcasted?

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


More information about the llvm-commits mailing list