Fix dropped conditional in cleanup in r245752

Code review feedback by Charlie Turner.

llvm-svn: 245954
This commit is contained in:
David Blaikie 2015-08-25 17:01:36 +00:00
parent a94e7b6acf
commit d486000387
1 changed files with 4 additions and 3 deletions

View File

@ -569,6 +569,7 @@ bool GlobalMerge::doInitialization(Module &M) {
if (P.second.size() > 1) if (P.second.size() > 1)
Changed |= doMerge(P.second, M, false, P.first); Changed |= doMerge(P.second, M, false, P.first);
if (EnableGlobalMergeOnConst)
for (auto &P : ConstGlobals) for (auto &P : ConstGlobals)
if (P.second.size() > 1) if (P.second.size() > 1)
Changed |= doMerge(P.second, M, true, P.first); Changed |= doMerge(P.second, M, true, P.first);