[llvm] [VPlan] Introduce explicit broadcasts for live-ins. (PR #124644)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 6 14:06:53 PST 2025


================
@@ -825,6 +828,8 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
   case VPInstruction::BranchOnCond:
   case VPInstruction::ResumePhi:
     return true;
+  case VPInstruction::PtrAdd:
+    return Op == getOperand(0) || vputils::onlyFirstLaneUsed(this);
----------------
ayalz wrote:

Why restrict to first operand?

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


More information about the llvm-commits mailing list