[llvm-commits] [llvm] r164024 - /llvm/trunk/lib/CodeGen/StackColoring.cpp
Nadav Rotem
nrotem at apple.com
Mon Sep 17 03:21:55 PDT 2012
Author: nadav
Date: Mon Sep 17 05:21:55 2012
New Revision: 164024
URL: http://llvm.org/viewvc/llvm-project?rev=164024&view=rev
Log:
Disable the protection from escaped allocas in an attempt to find violating passes. This may break the buildbots. I plan to revert it in a few hours.
Modified:
llvm/trunk/lib/CodeGen/StackColoring.cpp
Modified: llvm/trunk/lib/CodeGen/StackColoring.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StackColoring.cpp?rev=164024&r1=164023&r2=164024&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StackColoring.cpp (original)
+++ llvm/trunk/lib/CodeGen/StackColoring.cpp Mon Sep 17 05:21:55 2012
@@ -62,14 +62,13 @@
cl::init(false), cl::Hidden,
cl::desc("Disable stack coloring"));
-
/// The user may write code that uses allocas outside of the declared lifetime
/// zone. This can happen when the user returns a reference to a local
/// data-structure. We can detect these cases and decide not to optimize the
/// code. If this flag is enabled, we try to save the user.
static cl::opt<bool>
ProtectFromEscapedAllocas("protect-from-escaped-allocas",
- cl::init(true), cl::Hidden,
+ cl::init(false), cl::Hidden,
cl::desc("Do not optimize lifetime zones that are broken"));
STATISTIC(NumMarkerSeen, "Number of lifetime markers found.");
More information about the llvm-commits
mailing list