summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/PHITransAddr.cpp
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2017-04-26 20:56:13 +0000
committerDaniel Berlin <dberlin@dberlin.org>2017-04-26 20:56:13 +0000
commite6cb21a28788c2b78a9c4bc354b0662eb0ff5731 (patch)
treed743c2af743a93f06eb9cd3f1fe7e30c653160c3 /llvm/lib/Analysis/PHITransAddr.cpp
parent2c75c630635c4a087fa93b5755d7fb92a6aab00a (diff)
downloadbcm5719-llvm-e6cb21a28788c2b78a9c4bc354b0662eb0ff5731.tar.gz
bcm5719-llvm-e6cb21a28788c2b78a9c4bc354b0662eb0ff5731.zip
PHITransAddr: Use new SimplifyQuery based API.
llvm-svn: 301465
Diffstat (limited to 'llvm/lib/Analysis/PHITransAddr.cpp')
-rw-r--r--llvm/lib/Analysis/PHITransAddr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/PHITransAddr.cpp b/llvm/lib/Analysis/PHITransAddr.cpp
index 84ecd4ab980..682af4dc708 100644
--- a/llvm/lib/Analysis/PHITransAddr.cpp
+++ b/llvm/lib/Analysis/PHITransAddr.cpp
@@ -227,7 +227,7 @@ Value *PHITransAddr::PHITranslateSubExpr(Value *V, BasicBlock *CurBB,
// 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(Value *V, BasicBlock *CurBB,
}
// 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);
OpenPOWER on IntegriCloud