From: Bill Wendling Date: Thu, 6 Dec 2012 00:30:20 +0000 (+0000) Subject: Set the 'MadeChange' variable if we are deleting blocks. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab417b644c726a25d366c0f81d13bcf95608f572;p=platform%2Fupstream%2Fllvm.git Set the 'MadeChange' variable if we are deleting blocks. llvm-svn: 169455 --- diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp index 19b04d5..e6abfdf 100644 --- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/llvm/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);