[llvm-commits] [llvm] r169455 - /llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp
Bill Wendling
isanbard at gmail.com
Wed Dec 5 16:30:21 PST 2012
Author: void
Date: Wed Dec 5 18:30:20 2012
New Revision: 169455
URL: http://llvm.org/viewvc/llvm-project?rev=169455&view=rev
Log:
Set the 'MadeChange' variable if we are deleting blocks.
Modified:
llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp?rev=169455&r1=169454&r2=169455&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp Wed Dec 5 18:30:20 2012
@@ -195,6 +195,7 @@
}
// Delete the dead blocks and any of their dead successors.
+ MadeChange |= !WorkList.empty();
while (!WorkList.empty()) {
BasicBlock *BB = *WorkList.begin();
WorkList.erase(BB);
More information about the llvm-commits
mailing list