diff options
author | Silviu Baranga <silviu.baranga@arm.com> | 2016-02-08 11:56:15 +0000 |
---|---|---|
committer | Silviu Baranga <silviu.baranga@arm.com> | 2016-02-08 11:56:15 +0000 |
commit | 41b4973329490554594745b65913832ce5ae31ba (patch) | |
tree | 928d5a36135bccdab2938737b8cf487ba6d3d31e /llvm/lib/Transforms/Utils/LoopVersioning.cpp | |
parent | 70a98bb9e85fbc2d654c4c9cc360d277b8891db6 (diff) | |
download | llvm-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.cpp | 1 |
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(), |