OSDN Git Service

[Hexagon] Flip hexagon-autohvx to be true by default
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 24 Oct 2018 17:55:13 +0000 (17:55 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 24 Oct 2018 17:55:13 +0000 (17:55 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345169 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonTargetTransformInfo.cpp

index 79b269b..5cfaa42 100644 (file)
@@ -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",