Skip to content

Commit bb5d97f

Browse files
committed
!fixup address latest comments, thanks
1 parent d5f849b commit bb5d97f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7211,6 +7211,8 @@ static void addRuntimeUnrollDisableMetaData(Loop *L) {
72117211

72127212
static Value *getStartValueFromReductionResult(VPInstruction *RdxResult) {
72137213
using namespace VPlanPatternMatch;
7214+
assert(RdxResult->getOpcode() == VPInstruction::ComputeFindLastIVResult &&
7215+
"RdxResult must be ComputeFindLastIVResult");
72147216
VPValue *StartVPV = RdxResult->getOperand(1);
72157217
match(StartVPV, m_Freeze(m_VPValue(StartVPV)));
72167218
return StartVPV->getLiveInIRValue();

llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
9090
"different types inferred for different operands");
9191
return IntegerType::get(Ctx, 1);
9292
case VPInstruction::ComputeAnyOfResult:
93-
return inferScalarType(R->getOperand(1));
9493
case VPInstruction::ComputeFindLastIVResult:
9594
case VPInstruction::ComputeReductionResult: {
9695
auto *PhiR = cast<VPReductionPHIRecipe>(R->getOperand(0));

0 commit comments

Comments
 (0)