git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256052 91177308-0d34-0410-b5e6-96231b3b80d8
@@ -236,10 +236,6 @@ int main(int argc, char **argv) {
} else {
// Deleting. Materialize every GV that's *not* in GVs.
SmallPtrSet<GlobalValue *, 8> GVSet(GVs.begin(), GVs.end());
- for (auto &G : M->globals()) {
- if (!GVSet.count(&G))
- Materialize(G);
- }
for (auto &F : *M) {
if (!GVSet.count(&F))
Materialize(F);