Skip to content

Commit 61162a7

Browse files
committed
[LV] Avoid bailing on SCEVUnknown in uniformity-rew
There is nothing inherently non-analyzable about an SCEVUnknown.
1 parent 8a62a50 commit 61162a7

File tree

3 files changed

+201
-124
lines changed

3 files changed

+201
-124
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -528,14 +528,6 @@ class SCEVAddRecForUniformityRewriter
528528
return SCEVRewriteVisitor<SCEVAddRecForUniformityRewriter>::visit(S);
529529
}
530530

531-
const SCEV *visitUnknown(const SCEVUnknown *S) {
532-
if (SE.isLoopInvariant(S, TheLoop))
533-
return S;
534-
// The value could vary across iterations.
535-
CannotAnalyze = true;
536-
return S;
537-
}
538-
539531
const SCEV *visitCouldNotCompute(const SCEVCouldNotCompute *S) {
540532
// Could not analyze the expression.
541533
CannotAnalyze = true;

0 commit comments

Comments
 (0)