From 4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Fri, 28 Apr 2017 19:55:38 +0000 Subject: Kill off the old SimplifyInstruction API by converting remaining users. llvm-svn: 301673 --- llvm/lib/Transforms/Utils/SimplifyInstructions.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Transforms/Utils/SimplifyInstructions.cpp') diff --git a/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp b/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp index 2737342..2509b5f 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(U)); -- cgit v1.1