aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopVersioning.cpp
diff options
context:
space:
mode:
authorSilviu Baranga <silviu.baranga@arm.com>2016-02-08 11:56:15 +0000
committerSilviu Baranga <silviu.baranga@arm.com>2016-02-08 11:56:15 +0000
commit41b4973329490554594745b65913832ce5ae31ba (patch)
tree928d5a36135bccdab2938737b8cf487ba6d3d31e /llvm/lib/Transforms/Utils/LoopVersioning.cpp
parent70a98bb9e85fbc2d654c4c9cc360d277b8891db6 (diff)
downloadllvm-41b4973329490554594745b65913832ce5ae31ba.zip
llvm-41b4973329490554594745b65913832ce5ae31ba.tar.gz
llvm-41b4973329490554594745b65913832ce5ae31ba.tar.bz2
Revert r260086 and r260085. They have broken the memory
sanitizer bots. llvm-svn: 260087
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopVersioning.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopVersioning.cpp b/llvm/lib/Transforms/Utils/LoopVersioning.cpp
index 9303dee..1aeffb7 100644
--- a/llvm/lib/Transforms/Utils/LoopVersioning.cpp
+++ b/llvm/lib/Transforms/Utils/LoopVersioning.cpp
@@ -56,6 +56,7 @@ void LoopVersioning::versionLoop(
BasicBlock *RuntimeCheckBB = VersionedLoop->getLoopPreheader();
std::tie(FirstCheckInst, MemRuntimeCheck) =
LAI.addRuntimeChecks(RuntimeCheckBB->getTerminator(), AliasChecks);
+ assert(MemRuntimeCheck && "called even though needsAnyChecking = false");
const SCEVUnionPredicate &Pred = LAI.PSE.getUnionPredicate();
SCEVExpander Exp(*SE, RuntimeCheckBB->getModule()->getDataLayout(),