forked from OSchip/llvm-project
[SCCP] Use the appropriate helper function. NFCI.
llvm-svn: 289406
This commit is contained in:
parent
fd4016b7c7
commit
0a1476c756
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue