diff options
author | Juergen Ributzka <juergen@apple.com> | 2014-01-24 18:40:30 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2014-01-24 18:40:30 +0000 |
commit | dc6f9b9a4fcf2b280ee2b30542d223dd6ddbf900 (patch) | |
tree | ed17530421ddaddebbe7c91881f45611c757e2b9 /lib/Transforms/Scalar/CodeGenPrepare.cpp | |
parent | 08aa5bf1d544774d4689521b525a34a0807278ee (diff) | |
download | llvm-dc6f9b9a4fcf2b280ee2b30542d223dd6ddbf900.tar.gz llvm-dc6f9b9a4fcf2b280ee2b30542d223dd6ddbf900.tar.bz2 llvm-dc6f9b9a4fcf2b280ee2b30542d223dd6ddbf900.tar.xz |
Revert "Add Constant Hoisting Pass"
This reverts commit r200022 to unbreak the build bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/CodeGenPrepare.cpp')
-rw-r--r-- | lib/Transforms/Scalar/CodeGenPrepare.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp index 6acbd5eaa1..38f587b2cc 100644 --- a/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -240,7 +240,7 @@ bool CodeGenPrepare::runOnFunction(Function &F) { bool CodeGenPrepare::EliminateFallThrough(Function &F) { bool Changed = false; // Scan all of the blocks in the function, except for the entry block. - for (Function::iterator I = llvm::next(F.begin()), E = F.end(); I != E; ) { + for (Function::iterator I = ++F.begin(), E = F.end(); I != E; ) { BasicBlock *BB = I++; // If the destination block has a single pred, then this is a trivial // edge, just collapse it. @@ -276,7 +276,7 @@ bool CodeGenPrepare::EliminateFallThrough(Function &F) { bool CodeGenPrepare::EliminateMostlyEmptyBlocks(Function &F) { bool MadeChange = false; // Note that this intentionally skips the entry block. - for (Function::iterator I = llvm::next(F.begin()), E = F.end(); I != E; ) { + for (Function::iterator I = ++F.begin(), E = F.end(); I != E; ) { BasicBlock *BB = I++; // If this block doesn't end with an uncond branch, ignore it. |