diff options
author | Duncan Sands <baldrick@free.fr> | 2012-03-13 11:42:19 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-03-13 11:42:19 +0000 |
commit | 0aa85eb231dc76bcabcd35f6dc9a50536f607df3 (patch) | |
tree | 798755d0e6353b2d1245fe0e3384f08149276174 /lib/Analysis/PHITransAddr.cpp | |
parent | 61b1851a205cb8dd29c1d3d4231efb8f8f7da283 (diff) |
Uniformize the InstructionSimplify interface by ensuring that all routines
take a TargetLibraryInfo parameter. Internally, rather than passing TD, TLI
and DT parameters around all over the place, introduce a struct for holding
them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PHITransAddr.cpp')
-rw-r--r-- | lib/Analysis/PHITransAddr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/PHITransAddr.cpp b/lib/Analysis/PHITransAddr.cpp index ca06300363..38cb1c91f8 100644 --- a/lib/Analysis/PHITransAddr.cpp +++ b/lib/Analysis/PHITransAddr.cpp @@ -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); |