[llvm] r301465 - PHITransAddr: Use new SimplifyQuery based API.

Daniel Berlin via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 13:56:13 PDT 2017


Author: dannyb
Date: Wed Apr 26 15:56:13 2017
New Revision: 301465

URL: http://llvm.org/viewvc/llvm-project?rev=301465&view=rev
Log:
PHITransAddr: Use new SimplifyQuery based API.

Modified:
    llvm/trunk/lib/Analysis/PHITransAddr.cpp

Modified: llvm/trunk/lib/Analysis/PHITransAddr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/PHITransAddr.cpp?rev=301465&r1=301464&r2=301465&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/PHITransAddr.cpp (original)
+++ llvm/trunk/lib/Analysis/PHITransAddr.cpp Wed Apr 26 15:56:13 2017
@@ -227,7 +227,7 @@ Value *PHITransAddr::PHITranslateSubExpr
 
     // Simplify the GEP to handle 'gep x, 0' -> x etc.
     if (Value *V = SimplifyGEPInst(GEP->getSourceElementType(),
-                                   GEPOps, DL, TLI, DT, AC)) {
+                                   GEPOps, {DL, TLI, DT, AC})) {
       for (unsigned i = 0, e = GEPOps.size(); i != e; ++i)
         RemoveInstInputs(GEPOps[i], InstInputs);
 
@@ -276,7 +276,7 @@ Value *PHITransAddr::PHITranslateSubExpr
         }
 
     // See if the add simplifies away.
-    if (Value *Res = SimplifyAddInst(LHS, RHS, isNSW, isNUW, DL, TLI, DT, AC)) {
+    if (Value *Res = SimplifyAddInst(LHS, RHS, isNSW, isNUW, {DL, TLI, DT, AC})) {
       // If we simplified the operands, the LHS is no longer an input, but Res
       // is.
       RemoveInstInputs(LHS, InstInputs);




More information about the llvm-commits mailing list