[SCCP] Use the appropriate helper function. NFCI.

llvm-svn: 289406
This commit is contained in:
Davide Italiano 2016-12-11 21:19:03 +00:00
parent fd4016b7c7
commit 0a1476c756
1 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ public:
}
private:
// pushToWorkList - Helper for markConstant/markForcedConstant
// pushToWorkList - Helper for markConstant/markForcedConstant/markOverdefined
void pushToWorkList(LatticeVal &IV, Value *V) {
if (IV.isOverdefined())
return OverdefinedInstWorkList.push_back(V);
@ -380,7 +380,7 @@ private:
else
dbgs() << *V << '\n');
// Only instructions go on the work list
OverdefinedInstWorkList.push_back(V);
pushToWorkList(IV, V);
}
void mergeInValue(LatticeVal &IV, Value *V, LatticeVal MergeWithV) {