aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2017-04-28 19:55:38 +0000
committerDaniel Berlin <dberlin@dberlin.org>2017-04-28 19:55:38 +0000
commit4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3 (patch)
tree08fd126f85db9e1ea5d571f0686fe13fa2cc7310 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parentb6681e2b4e82cb11bd21a7cbf01abea165f32508 (diff)
downloadllvm-4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3.zip
llvm-4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3.tar.gz
llvm-4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3.tar.bz2
Kill off the old SimplifyInstruction API by converting remaining users.
llvm-svn: 301673
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index c862cfd..173b8cb 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -5959,7 +5959,7 @@ bool CodeGenPrepare::optimizeInst(Instruction *I, bool& ModifiedDT) {
// It is possible for very late stage optimizations (such as SimplifyCFG)
// to introduce PHI nodes too late to be cleaned up. If we detect such a
// trivial PHI, go ahead and zap it here.
- if (Value *V = SimplifyInstruction(P, *DL, TLInfo, nullptr)) {
+ if (Value *V = SimplifyInstruction(P, {*DL, TLInfo})) {
P->replaceAllUsesWith(V);
P->eraseFromParent();
++NumPHIsElim;