diff options
Diffstat (limited to 'lib')
-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 55b4942bb9..0d8a848cc0 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; |