From 57b5ac14314b18d3259999f9283a962b3b065c56 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 24 Oct 2018 17:55:13 +0000 Subject: [PATCH] [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 --- llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp b/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp index 79b269b..5cfaa42 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 HexagonAutoHVX("hexagon-autohvx", cl::init(false), +static cl::opt HexagonAutoHVX("hexagon-autohvx", cl::init(true), cl::Hidden, cl::desc("Enable loop vectorizer for HVX")); static cl::opt EmitLookupTables("hexagon-emit-lookup-tables", -- 2.7.4