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 45ebdc0 commit 8dd7cdeCopy full SHA for 8dd7cde
llvm/lib/Analysis/IVDescriptors.cpp
@@ -1171,6 +1171,7 @@ unsigned RecurrenceDescriptor::getOpcode(RecurKind Kind) {
1171
SmallVector<Instruction *, 4>
1172
RecurrenceDescriptor::getReductionOpChain(PHINode *Phi, Loop *L) const {
1173
SmallVector<Instruction *, 4> ReductionOperations;
1174
+ assert(Kind != RecurKind::None && "Unexpected recurrence kind");
1175
bool IsNonArithmetic = !isArithmeticRecurrenceKind(Kind);
1176
1177
// Search down from the Phi to the LoopExitInstr, looking for instructions
0 commit comments