summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp
diff options
context:
space:
mode:
authorGerolf Hoflehner <ghoflehner@apple.com>2014-04-26 02:03:17 +0000
committerGerolf Hoflehner <ghoflehner@apple.com>2014-04-26 02:03:17 +0000
commitc46e9b0423683ccb642573e3d36ef95fcc2c68ac (patch)
tree7bbf1300b525ba565a2ea800a4bc43cf942120e8 /llvm/lib/Transforms/Utils/SimplifyInstructions.cpp
parent34210108b320b0ea9ccf2490690612efe702d5f6 (diff)
downloadbcm5719-llvm-c46e9b0423683ccb642573e3d36ef95fcc2c68ac.tar.gz
bcm5719-llvm-c46e9b0423683ccb642573e3d36ef95fcc2c68ac.zip
Revert commit r207302 since build failures
have been reported. llvm-svn: 207303
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyInstructions.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyInstructions.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp b/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp
index 33b36378027..c62aa663f6d 100644
--- a/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp
@@ -76,15 +76,7 @@ namespace {
++NumSimplified;
Changed = true;
}
- bool res = RecursivelyDeleteTriviallyDeadInstructions(I, TLI);
- if (res) {
- // RecursivelyDeleteTriviallyDeadInstruction can remove
- // more than one instruction, so simply incrementing the
- // iterator does not work. When instructions get deleted
- // re-iterate instead.
- BI = BB->begin(); BE = BB->end();
- Changed |= res;
- }
+ Changed |= RecursivelyDeleteTriviallyDeadInstructions(I, TLI);
}
// Place the list of instructions to simplify on the next loop iteration
OpenPOWER on IntegriCloud