Fix dropped conditional in cleanup in r245752
Code review feedback by Charlie Turner. llvm-svn: 245954
This commit is contained in:
parent
a94e7b6acf
commit
d486000387
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue