OSDN Git Service

GlobalDCE: Restore a statement accidentally removed in r285048.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 25 Oct 2016 02:57:27 +0000 (02:57 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 25 Oct 2016 02:57:27 +0000 (02:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285052 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/GlobalDCE.cpp

index aaa9f89..7a04de3 100644 (file)
@@ -182,6 +182,7 @@ PreservedAnalyses GlobalDCEPass::run(Module &M, ModuleAnalysisManager &) {
   for (GlobalAlias *GA : DeadAliases)
     EraseUnusedGlobalValue(GA);
 
+  NumIFuncs += DeadIFuncs.size();
   for (GlobalIFunc *GIF : DeadIFuncs)
     EraseUnusedGlobalValue(GIF);