LoopVectorizer: Enable strided memory accesses versioning per default
authorArnold Schwaighofer <aschwaighofer@apple.com>
Sat, 11 Jan 2014 20:40:34 +0000 (20:40 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Sat, 11 Jan 2014 20:40:34 +0000 (20:40 +0000)
I saw no compile or execution time regressions on x86_64 -mavx -O3.

radar://13075509

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

lib/Transforms/Vectorize/LoopVectorize.cpp

index 6a4d8b411c2437fdc8263d5acf8350c6e9113a28..3ca0f14ee38169936203467d414d1b4ce89954c1 100644 (file)
@@ -126,7 +126,7 @@ TinyTripCountVectorThreshold("vectorizer-min-trip-count", cl::init(16),
 ///    } else
 ///      ...
 static cl::opt<bool> EnableMemAccessVersioning(
-    "enable-mem-access-versioning", cl::init(false), cl::Hidden,
+    "enable-mem-access-versioning", cl::init(true), cl::Hidden,
     cl::desc("Enable symblic stride memory access versioning"));
 
 /// We don't unroll loops with a known constant trip count below this number.