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 | b8cee008410319c32e99004a7ffa634fe2188314 (patch) | |
tree | ad216771e336f8df91f967a042eae92a1d969fbe /llvm/lib/Analysis/PHITransAddr.cpp | |
parent | cf526ff2780d7fd8f3a9ba1e089d5e9dea8ba6b6 (diff) | |
download | bcm5719-llvm-b8cee008410319c32e99004a7ffa634fe2188314.tar.gz bcm5719-llvm-b8cee008410319c32e99004a7ffa634fe2188314.zip |
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.
llvm-svn: 152623
Diffstat (limited to 'llvm/lib/Analysis/PHITransAddr.cpp')
-rw-r--r-- | llvm/lib/Analysis/PHITransAddr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/PHITransAddr.cpp b/llvm/lib/Analysis/PHITransAddr.cpp index ca063003636..38cb1c91f8f 100644 --- a/llvm/lib/Analysis/PHITransAddr.cpp +++ b/llvm/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); |