diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-02-25 02:56:01 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-02-25 02:56:01 +0000 |
commit | fa086f1f00a8b75ab2e2208bd7a028e62f9854db (patch) | |
tree | bfdbc32a58e54bc9c061f00c9cb207a17ce036d2 /include/llvm/Transforms/IPO.h | |
parent | c69cbd0a7431b047dbc4a9758e81bf122926ba0a (diff) | |
download | llvm-fa086f1f00a8b75ab2e2208bd7a028e62f9854db.tar.gz llvm-fa086f1f00a8b75ab2e2208bd7a028e62f9854db.tar.bz2 llvm-fa086f1f00a8b75ab2e2208bd7a028e62f9854db.tar.xz |
Add support for disabling llvm.lifetime intrinsics in the AlwaysInliner. These
are optimization hints, but at -O0 we're not optimizing. This becomes a problem
when the alwaysinline attribute is abused.
rdar://10921594
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/IPO.h')
-rw-r--r-- | include/llvm/Transforms/IPO.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index f9d7f9e6b9..18176e8fdb 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -94,6 +94,7 @@ Pass *createFunctionInliningPass(int Threshold); /// createAlwaysInlinerPass - Return a new pass object that inlines only /// functions that are marked as "always_inline". Pass *createAlwaysInlinerPass(); +Pass *createAlwaysInlinerPass(bool InsertLifetime); //===----------------------------------------------------------------------===// /// createPruneEHPass - Return a new pass object which transforms invoke |