[SCCP] Get rid of redundant call for getPredicateInfoFor (NFC).

We can use the result fetched a few lines above.

llvm-svn: 349527
This commit is contained in:
Florian Hahn 2018-12-18 19:37:07 +00:00
parent 8434ef7d1e
commit 5c014037b3
1 changed files with 1 additions and 1 deletions

View File

@ -1172,7 +1172,7 @@ void SCCPSolver::visitCallSite(CallSite CS) {
return;
Value *CopyOf = I->getOperand(0);
auto *PBranch = dyn_cast<PredicateBranch>(getPredicateInfoFor(I));
auto *PBranch = dyn_cast<PredicateBranch>(PI);
if (!PBranch) {
mergeInValue(ValueState[I], I, getValueState(CopyOf));
return;