Kill off the old SimplifyInstruction API by converting remaining users.

llvm-svn: 301673
This commit is contained in:
Daniel Berlin
2017-04-28 19:55:38 +00:00
parent b6681e2b4e
commit 4d0fe64ae3
21 changed files with 123 additions and 103 deletions

View File

@@ -2302,7 +2302,7 @@ bool llvm::InlineFunction(CallSite CS, InlineFunctionInfo &IFI,
AssumptionCache *AC =
IFI.GetAssumptionCache ? &(*IFI.GetAssumptionCache)(*Caller) : nullptr;
auto &DL = Caller->getParent()->getDataLayout();
if (Value *V = SimplifyInstruction(PHI, DL, nullptr, nullptr, AC)) {
if (Value *V = SimplifyInstruction(PHI, {DL, nullptr, nullptr, AC})) {
PHI->replaceAllUsesWith(V);
PHI->eraseFromParent();
}