summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2018-01-08 22:07:42 +0000
committerJustin Bogner <mail@justinbogner.com>2018-01-08 22:07:42 +0000
commit6f6846fc9d364bc9d7a8db4dcae274facd420161 (patch)
tree30353060a848cf77a3b29d730da0d8450e21c490 /llvm/lib/Transforms
parent8b1378a9a35d0745e9f4ca499d3c301d519d2438 (diff)
downloadbcm5719-llvm-6f6846fc9d364bc9d7a8db4dcae274facd420161.tar.gz
bcm5719-llvm-6f6846fc9d364bc9d7a8db4dcae274facd420161.zip
AlwaysInliner: Alow setting InsertLifetime in the new-style pass
llvm-svn: 322033
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/AlwaysInliner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/AlwaysInliner.cpp b/llvm/lib/Transforms/IPO/AlwaysInliner.cpp
index a4bbc99b1f9..5be728b3855 100644
--- a/llvm/lib/Transforms/IPO/AlwaysInliner.cpp
+++ b/llvm/lib/Transforms/IPO/AlwaysInliner.cpp
@@ -50,7 +50,8 @@ PreservedAnalyses AlwaysInlinerPass::run(Module &M, ModuleAnalysisManager &) {
for (CallSite CS : Calls)
// FIXME: We really shouldn't be able to fail to inline at this point!
// We should do something to log or check the inline failures here.
- Changed |= InlineFunction(CS, IFI);
+ Changed |=
+ InlineFunction(CS, IFI, /*CalleeAAR=*/nullptr, InsertLifetime);
// Remember to try and delete this function afterward. This both avoids
// re-walking the rest of the module and avoids dealing with any iterator
OpenPOWER on IntegriCloud