diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2017-04-28 19:55:38 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2017-04-28 19:55:38 +0000 |
commit | 4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3 (patch) | |
tree | 08fd126f85db9e1ea5d571f0686fe13fa2cc7310 /llvm/lib/Transforms/Utils/SimplifyInstructions.cpp | |
parent | b6681e2b4e82cb11bd21a7cbf01abea165f32508 (diff) | |
download | bcm5719-llvm-4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3.tar.gz bcm5719-llvm-4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3.zip |
Kill off the old SimplifyInstruction API by converting remaining users.
llvm-svn: 301673
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyInstructions.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyInstructions.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp b/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp index 27373427d4f..2509b5f2204 100644 --- a/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp @@ -54,8 +54,7 @@ static bool runImpl(Function &F, const SimplifyQuery &SQ, // Don't waste time simplifying unused instructions. if (!I->use_empty()) { - if (Value *V = - SimplifyInstruction(I, SQ.getWithInstruction(I), ORE)) { + if (Value *V = SimplifyInstruction(I, SQ, ORE)) { // Mark all uses for resimplification next time round the loop. for (User *U : I->users()) Next->insert(cast<Instruction>(U)); |