diff options
author | Adrian Kuegel <akuegel@google.com> | 2021-02-05 12:51:03 +0100 |
---|---|---|
committer | Adrian Kuegel <akuegel@google.com> | 2021-02-05 12:51:03 +0100 |
commit | 7fe41ac3dff2d44c3d2c31b28554fbe4a86eaa6c (patch) | |
tree | 4234621a24a0059bfc834dbeaefa7b637b3dfac5 /llvm/lib/Transforms/Utils/LoopVersioning.cpp | |
parent | 78935ea1e71514300ac206417b7531f72fdc4427 (diff) | |
download | llvm-7fe41ac3dff2d44c3d2c31b28554fbe4a86eaa6c.zip llvm-7fe41ac3dff2d44c3d2c31b28554fbe4a86eaa6c.tar.gz llvm-7fe41ac3dff2d44c3d2c31b28554fbe4a86eaa6c.tar.bz2 |
Revert "[LV] Unconditionally branch from middle to scalar preheader if the scalar loop must execute"
This reverts commit 3e5ce49e5371ce4feadbf97dd5c2b652d9db3d1d.
Tests started failing on PPC, for example:
http://lab.llvm.org:8011/#/builders/105/builds/5569
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopVersioning.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopVersioning.cpp b/llvm/lib/Transforms/Utils/LoopVersioning.cpp index 8a89158..de4fb44 100644 --- a/llvm/lib/Transforms/Utils/LoopVersioning.cpp +++ b/llvm/lib/Transforms/Utils/LoopVersioning.cpp @@ -44,11 +44,11 @@ LoopVersioning::LoopVersioning(const LoopAccessInfo &LAI, AliasChecks(Checks.begin(), Checks.end()), Preds(LAI.getPSE().getUnionPredicate()), LAI(LAI), LI(LI), DT(DT), SE(SE) { + assert(L->getUniqueExitBlock() && "No single exit block"); } void LoopVersioning::versionLoop( const SmallVectorImpl<Instruction *> &DefsUsedOutside) { - assert(VersionedLoop->getUniqueExitBlock() && "No single exit block"); assert(VersionedLoop->isLoopSimplifyForm() && "Loop is not in loop-simplify form"); |