summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEli Friedman <efriedma@codeaurora.org>2017-04-06 22:42:18 +0000
committerEli Friedman <efriedma@codeaurora.org>2017-04-06 22:42:18 +0000
commit5fba1e53f264529ecfdf317b5c8becc368c6c0c3 (patch)
treee394f8cad0eab947abb3e5e77a6101a06fb87b38 /llvm/lib/CodeGen
parent5eb8ea8872b59b00f3534dbcb0d47b10260245f3 (diff)
downloadbcm5719-llvm-5fba1e53f264529ecfdf317b5c8becc368c6c0c3.tar.gz
bcm5719-llvm-5fba1e53f264529ecfdf317b5c8becc368c6c0c3.zip
Turn on -addr-sink-using-gep by default.
The new codepath has been in the tree for years, and there isn't any reason to use two codepaths here. Differential Revision: https://reviews.llvm.org/D30596 llvm-svn: 299723
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index c53f827ebe6..e2bb3780e3e 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -96,7 +96,7 @@ static cl::opt<bool> DisableSelectToBranch(
cl::desc("Disable select to branch conversion."));
static cl::opt<bool> AddrSinkUsingGEPs(
- "addr-sink-using-gep", cl::Hidden, cl::init(false),
+ "addr-sink-using-gep", cl::Hidden, cl::init(true),
cl::desc("Address sinking in CGP using GEPs."));
static cl::opt<bool> EnableAndCmpSinking(
OpenPOWER on IntegriCloud