mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-19 19:25:40 +00:00
Allow NULL LoopPassManager argument in UnrollLoop. PR12734.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156358 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -237,6 +237,8 @@ bool llvm::UnrollRuntimeLoopProlog(Loop *L, unsigned Count, LoopInfo *LI,
|
||||
|
||||
// Use Scalar Evolution to compute the trip count. This allows more
|
||||
// loops to be unrolled than relying on induction var simplification
|
||||
if (!LPM)
|
||||
return false;
|
||||
ScalarEvolution *SE = LPM->getAnalysisIfAvailable<ScalarEvolution>();
|
||||
if (SE == 0)
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user