summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-10-24 17:55:13 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-10-24 17:55:13 +0000
commit57b5ac14314b18d3259999f9283a962b3b065c56 (patch)
tree885542f2b279d91464a797afaf999c0a02608681
parent3113ec3dc78e027fcfeef54a62d117c9d566d4f1 (diff)
downloadbcm5719-llvm-57b5ac14314b18d3259999f9283a962b3b065c56.tar.gz
bcm5719-llvm-57b5ac14314b18d3259999f9283a962b3b065c56.zip
[Hexagon] Flip hexagon-autohvx to be true by default
This will allow other generators of LLVM IR to use the auto-vectorizer without having to change that flag. Note: on its own, this patch will enable auto-vectorization on Hexagon in all cases, regardless of the -fvectorize flag. There is a companion clang patch that together with this one forms an NFC for clang users. llvm-svn: 345169
-rw-r--r--llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp b/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
index 79b269bccfe..5cfaa42ae5c 100644
--- a/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
@@ -28,7 +28,7 @@ using namespace llvm;
#define DEBUG_TYPE "hexagontti"
-static cl::opt<bool> HexagonAutoHVX("hexagon-autohvx", cl::init(false),
+static cl::opt<bool> HexagonAutoHVX("hexagon-autohvx", cl::init(true),
cl::Hidden, cl::desc("Enable loop vectorizer for HVX"));
static cl::opt<bool> EmitLookupTables("hexagon-emit-lookup-tables",
OpenPOWER on IntegriCloud