File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments