]> granicus.if.org Git - llvm/commitdiff
[SCCP] Get rid of redundant call for getPredicateInfoFor (NFC).
authorFlorian Hahn <flo@fhahn.com>
Tue, 18 Dec 2018 19:37:07 +0000 (19:37 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 18 Dec 2018 19:37:07 +0000 (19:37 +0000)
We can use the result fetched a few lines above.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349527 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SCCP.cpp

index 11cd7cc8200a66236f15598fb97ace7dce8c58ef..2f6ed05c023b1e6bb63835fb59682ebc334b1786 100644 (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;