We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed9a1e7 commit efa987cCopy full SHA for efa987c
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -1101,7 +1101,6 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
1101
default:
1102
return false;
1103
case Instruction::ExtractElement:
1104
- case VPInstruction::ExtractLane:
1105
return Op == getOperand(1);
1106
case Instruction::PHI:
1107
return true;
@@ -1126,6 +1125,8 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
1126
1125
case VPInstruction::ComputeAnyOfResult:
1127
case VPInstruction::ComputeFindIVResult:
1128
+ case VPInstruction::ExtractLane:
1129
+ return Op == getOperand(0);
1130
};
1131
llvm_unreachable("switch should return");
1132
}
0 commit comments