summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-09-17 10:21:55 +0000
committerNadav Rotem <nrotem@apple.com>2012-09-17 10:21:55 +0000
commit2ae810a51fb682836019b5bc8717fe45ea23b3ec (patch)
tree3fd0f574f56ca850d025d52f1a1f247a876eaa27 /llvm/lib/CodeGen
parent75db576cc85fe496c19d1524ec2b00127b8147ca (diff)
downloadbcm5719-llvm-2ae810a51fb682836019b5bc8717fe45ea23b3ec.tar.gz
bcm5719-llvm-2ae810a51fb682836019b5bc8717fe45ea23b3ec.zip
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.
llvm-svn: 164024
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/StackColoring.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/StackColoring.cpp b/llvm/lib/CodeGen/StackColoring.cpp
index e9695b91e1a..54d8c8cde7e 100644
--- a/llvm/lib/CodeGen/StackColoring.cpp
+++ b/llvm/lib/CodeGen/StackColoring.cpp
@@ -62,14 +62,13 @@ DisableColoring("no-stack-coloring",
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.");
OpenPOWER on IntegriCloud