Add two statistics to help track how we are computing the inline cost.
[oota-llvm.git] / lib / Analysis / PHITransAddr.cpp
index ca0630036361e627544ec2668656cbeee5b51897..38cb1c91f8f830701951d5d628cfb26d7697554f 100644 (file)
@@ -227,7 +227,7 @@ Value *PHITransAddr::PHITranslateSubExpr(Value *V, BasicBlock *CurBB,
       return GEP;
 
     // Simplify the GEP to handle 'gep x, 0' -> x etc.
-    if (Value *V = SimplifyGEPInst(GEPOps, TD, DT)) {
+    if (Value *V = SimplifyGEPInst(GEPOps, TD, TLI, DT)) {
       for (unsigned i = 0, e = GEPOps.size(); i != e; ++i)
         RemoveInstInputs(GEPOps[i], InstInputs);