Switch SROA to pop Uses off the back of its visitors' queues.
[oota-llvm.git] / 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);