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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169455 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/CodeGenPrepare.cpp

index 19b04d5bc3a637125426fbce17eb42630784a9d6..e6abfdf581f03bff2cd1012844f03c24de5bd865 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);