Kill off the old SimplifyInstruction API by converting remaining users.
llvm-svn: 301673
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user