parent
e3c00e5b97
commit
bb2a6da440
|
@ -1925,8 +1925,8 @@ bool IPSCCP::runOnModule(Module &M) {
|
||||||
ReturnsToZap[i]->setOperand(0, UndefValue::get(F->getReturnType()));
|
ReturnsToZap[i]->setOperand(0, UndefValue::get(F->getReturnType()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we inferred constant or undef values for globals variables, we can delete
|
// If we inferred constant or undef values for globals variables, we can
|
||||||
// the global and any stores that remain to it.
|
// delete the global and any stores that remain to it.
|
||||||
const DenseMap<GlobalVariable*, LatticeVal> &TG = Solver.getTrackedGlobals();
|
const DenseMap<GlobalVariable*, LatticeVal> &TG = Solver.getTrackedGlobals();
|
||||||
for (DenseMap<GlobalVariable*, LatticeVal>::const_iterator I = TG.begin(),
|
for (DenseMap<GlobalVariable*, LatticeVal>::const_iterator I = TG.begin(),
|
||||||
E = TG.end(); I != E; ++I) {
|
E = TG.end(); I != E; ++I) {
|
||||||
|
|
Loading…
Reference in New Issue