Set the 'MadeChange' variable if we are deleting blocks.
authorBill Wendling <isanbard@gmail.com>
Thu, 6 Dec 2012 00:30:20 +0000 (00:30 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 6 Dec 2012 00:30:20 +0000 (00:30 +0000)
llvm-svn: 169455

llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp

index 19b04d5..e6abfdf 100644 (file)
@@ -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);