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 | 07d37bc1edafcf53ffc334ec0a35236e636471dc (patch) | |
tree | 5ff186f59df288bf889f230898f6c942cc3c7910 /llvm/lib/Transforms/IPO/InlineSimple.cpp | |
parent | 2495ab08fc79d42a3a7ee0200b6592cb80501056 (diff) | |
download | llvm-07d37bc1edafcf53ffc334ec0a35236e636471dc.zip llvm-07d37bc1edafcf53ffc334ec0a35236e636471dc.tar.gz llvm-07d37bc1edafcf53ffc334ec0a35236e636471dc.tar.bz2 |
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
llvm-svn: 151429
Diffstat (limited to 'llvm/lib/Transforms/IPO/InlineSimple.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/InlineSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/InlineSimple.cpp b/llvm/lib/Transforms/IPO/InlineSimple.cpp index 84dd4fd..c33d5ea 100644 --- a/llvm/lib/Transforms/IPO/InlineSimple.cpp +++ b/llvm/lib/Transforms/IPO/InlineSimple.cpp @@ -37,7 +37,7 @@ namespace { SimpleInliner() : Inliner(ID) { initializeSimpleInlinerPass(*PassRegistry::getPassRegistry()); } - SimpleInliner(int Threshold) : Inliner(ID, Threshold) { + SimpleInliner(int Threshold) : Inliner(ID, Threshold, true) { initializeSimpleInlinerPass(*PassRegistry::getPassRegistry()); } static char ID; // Pass identification, replacement for typeid |