From ab417b644c726a25d366c0f81d13bcf95608f572 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 6 Dec 2012 00:30:20 +0000 Subject: [PATCH] Set the 'MadeChange' variable if we are deleting blocks. llvm-svn: 169455 --- llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- 2.7.4