Skip to content

Commit 55af5ac

Browse files
author
GYT
committed
Address IR review pt2: use llvm_unreachable
1 parent 98a90e9 commit 55af5ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,12 @@ bool LoopVectorizeHints::allowVectorization(
197197
<< "loop not vectorized: loop transformations are disabled");
198198
} else {
199199
// This should be unreachable unless there is a bug.
200-
LLVM_DEBUG(dbgs() << "LV: [BUG] Not vectorizing: loop vect disabled for "
201-
"an unknown reason!\n");
202200
ORE.emit(OptimizationRemarkMissed(LV_NAME, "MissedUnknown",
203201
TheLoop->getStartLoc(),
204202
TheLoop->getHeader())
205203
<< "loop not vectorized: unknown reason, please file a bug "
206204
"report on the LLVM issue tracker");
205+
llvm_unreachable("loop vect disabled for an unknown reason");
207206
}
208207
return false;
209208
}

0 commit comments

Comments
 (0)