Skip to content

Commit e80821e

Browse files
committed
Assert for execute guarantee check for now
1 parent 21a5682 commit e80821e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,12 +1908,11 @@ bool LoopVectorizationLegality::canUncountableExitConditionLoadBeMoved(
19081908
SafetyInfo.computeLoopSafetyInfo(TheLoop);
19091909
// We need to know that load will be executed before we can hoist a
19101910
// copy out to run just before the first iteration.
1911-
if (!SafetyInfo.isGuaranteedToExecute(*Load, DT, TheLoop)) {
1912-
reportVectorizationFailure(
1913-
"Early exit condition load not guaranteed to execute",
1914-
"EarlyExitLoadNotGuaranteed", ORE, TheLoop);
1915-
return false;
1916-
}
1911+
// FIXME: Currently, other restrictions prevent us from reaching this point
1912+
// with a loop where the uncountable exit condition is determined
1913+
// by a conditional load.
1914+
assert(SafetyInfo.isGuaranteedToExecute(*Load, DT, TheLoop) &&
1915+
"Unhandled control flow in uncountable exit loop with side effects");
19171916

19181917
CriticalUncountableExitConditionLoad = Load;
19191918
}

0 commit comments

Comments
 (0)