forked from OSchip/llvm-project
[SCCP] Re-use pushToWorkList in pushToWorkListMsg (NFC).
There's no need to duplicate the logic to push to the different work-lists.
This commit is contained in:
parent
3c2c7760d9
commit
935685f420
|
@ -361,9 +361,7 @@ private:
|
|||
// prints a debug message with the updated value.
|
||||
void pushToWorkListMsg(ValueLatticeElement &IV, Value *V) {
|
||||
LLVM_DEBUG(dbgs() << "updated " << IV << ": " << *V << '\n');
|
||||
if (IV.isOverdefined())
|
||||
return OverdefinedInstWorkList.push_back(V);
|
||||
InstWorkList.push_back(V);
|
||||
pushToWorkList(IV, V);
|
||||
}
|
||||
|
||||
// markConstant - Make a value be marked as "constant". If the value
|
||||
|
|
Loading…
Reference in New Issue