[llvm] r345169 - [Hexagon] Flip hexagon-autohvx to be true by default

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 24 10:55:14 PDT 2018


Author: kparzysz
Date: Wed Oct 24 10:55:13 2018
New Revision: 345169

URL: http://llvm.org/viewvc/llvm-project?rev=345169&view=rev
Log:
[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.

Modified:
    llvm/trunk/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp

Modified: llvm/trunk/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp?rev=345169&r1=345168&r2=345169&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp Wed Oct 24 10:55:13 2018
@@ -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",




More information about the llvm-commits mailing list