Skip to content

Commit 4da0b7a

Browse files
committed
!fixup fix onlyFirstLaneUsed for ExtractLane
1 parent 67f38bd commit 4da0b7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,6 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
11011101
default:
11021102
return false;
11031103
case Instruction::ExtractElement:
1104-
case VPInstruction::ExtractLane:
11051104
return Op == getOperand(1);
11061105
case Instruction::PHI:
11071106
return true;
@@ -1126,6 +1125,8 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
11261125
case VPInstruction::ComputeAnyOfResult:
11271126
case VPInstruction::ComputeFindIVResult:
11281127
return Op == getOperand(1);
1128+
case VPInstruction::ExtractLane:
1129+
return Op == getOperand(0);
11291130
};
11301131
llvm_unreachable("switch should return");
11311132
}

0 commit comments

Comments
 (0)