diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-10 22:35:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-10 22:35:56 +0000 |
commit | 7d3ced934f1bb2c6845676c7333ef879d5219e88 (patch) | |
tree | be6645c35751ca8e533746443c33679b4c410a72 | |
parent | df45bd3803ae0965a83cd1f30ee051b9f43e73dd (diff) | |
download | external_llvm-7d3ced934f1bb2c6845676c7333ef879d5219e88.zip external_llvm-7d3ced934f1bb2c6845676c7333ef879d5219e88.tar.gz external_llvm-7d3ced934f1bb2c6845676c7333ef879d5219e88.tar.bz2 |
Fix bug: LICM/sink_multiple_exits.ll
Thanks for pointing this out John :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10387 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/LICM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 55b4942..0d8a848 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -451,7 +451,7 @@ void LICM::sink(Instruction &I) { // instruction, otherwise clone the original instruction and insert // the copy. Instruction *New; - if (InsertedBlocks.empty()) { + if (InsertedBlocks.size() == 1) { I.getParent()->getInstList().remove(&I); ExitBlock->getInstList().insert(InsertPt, &I); New = &I; |