[llvm] [VPlan] Add ExtractLane VPInst to extract across multiple parts. (PR #148817)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 23 21:07:10 PDT 2025


================
@@ -1067,6 +1095,7 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
   default:
     return false;
   case Instruction::ExtractElement:
+  case VPInstruction::ExtractLane:
     return Op == getOperand(1);
----------------
lukel97 wrote:

Should this be checking `getOperand(0)`?

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


More information about the llvm-commits mailing list