[cfe-commits] r151430 - /cfe/trunk/lib/CodeGen/BackendUtil.cpp
Chad Rosier
mcrosier at apple.com
Fri Feb 24 18:56:14 PST 2012
Author: mcrosier
Date: Fri Feb 24 20:56:13 2012
New Revision: 151430
URL: http://llvm.org/viewvc/llvm-project?rev=151430&view=rev
Log:
Prevent llvm.lifetime intrinsics from being emitted at -O0.
rdar://10921594
Modified:
cfe/trunk/lib/CodeGen/BackendUtil.cpp
Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=151430&r1=151429&r2=151430&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Fri Feb 24 20:56:13 2012
@@ -184,7 +184,11 @@
}
case CodeGenOptions::OnlyAlwaysInlining:
// Respect always_inline.
- PMBuilder.Inliner = createAlwaysInlinerPass();
+ if (OptLevel == 0)
+ // Do not insert lifetime intrinsics at -O0.
+ PMBuilder.Inliner = createAlwaysInlinerPass(false);
+ else
+ PMBuilder.Inliner = createAlwaysInlinerPass();
break;
}
More information about the cfe-commits
mailing list