[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:
Florian Hahn 2020-05-04 10:17:24 +01:00
parent 3c2c7760d9
commit 935685f420
1 changed files with 1 additions and 3 deletions

View File

@ -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