[llvm] r285052 - GlobalDCE: Restore a statement accidentally removed in r285048.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 19:57:27 PDT 2016
Author: pcc
Date: Mon Oct 24 21:57:27 2016
New Revision: 285052
URL: http://llvm.org/viewvc/llvm-project?rev=285052&view=rev
Log:
GlobalDCE: Restore a statement accidentally removed in r285048.
Modified:
llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp
Modified: llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp?rev=285052&r1=285051&r2=285052&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp Mon Oct 24 21:57:27 2016
@@ -182,6 +182,7 @@ PreservedAnalyses GlobalDCEPass::run(Mod
for (GlobalAlias *GA : DeadAliases)
EraseUnusedGlobalValue(GA);
+ NumIFuncs += DeadIFuncs.size();
for (GlobalIFunc *GIF : DeadIFuncs)
EraseUnusedGlobalValue(GIF);
More information about the llvm-commits
mailing list