diff --git a/llvm/lib/Analysis/IVDescriptors.cpp b/llvm/lib/Analysis/IVDescriptors.cpp index 641850b46bbd8..30d14b56ed82b 100644 --- a/llvm/lib/Analysis/IVDescriptors.cpp +++ b/llvm/lib/Analysis/IVDescriptors.cpp @@ -1250,6 +1250,7 @@ unsigned RecurrenceDescriptor::getOpcode(RecurKind Kind) { case RecurKind::FindLastIVUMax: // TODO: Set AnyOf and FindIV to Instruction::Select once in-loop reductions // are supported. + llvm_unreachable("AnyOf and FindIV do not support in-loop"); default: llvm_unreachable("Unknown recurrence operation"); }