diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-06 00:30:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-06 00:30:20 +0000 |
commit | 1c211640e53226540cd403948f5dd89c36c4beb8 (patch) | |
tree | ad2b1c479445da7f58dfe0227e039bd8fb44dd56 /lib/Transforms/Scalar/CodeGenPrepare.cpp | |
parent | 85893f48a6994d71414773175440c421e5341810 (diff) |
Set the 'MadeChange' variable if we are deleting blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169455 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/CodeGenPrepare.cpp')
-rw-r--r-- | lib/Transforms/Scalar/CodeGenPrepare.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp index 19b04d5bc3..e6abfdf581 100644 --- a/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -195,6 +195,7 @@ bool CodeGenPrepare::runOnFunction(Function &F) { } // Delete the dead blocks and any of their dead successors. + MadeChange |= !WorkList.empty(); while (!WorkList.empty()) { BasicBlock *BB = *WorkList.begin(); WorkList.erase(BB); |