aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-09-18 03:55:53 +0000
committerCraig Topper <craig.topper@gmail.com>2013-09-18 03:55:53 +0000
commit4acd20a20be9f7d91ed35c1c6a501cec1605e854 (patch)
tree6f54dc8ccd9199915594f2aad4be12103aa6fbb9 /tools
parent0b956507cab3dc4b06b310d2674bb35c79f46dc0 (diff)
downloadexternal_llvm-4acd20a20be9f7d91ed35c1c6a501cec1605e854.zip
external_llvm-4acd20a20be9f7d91ed35c1c6a501cec1605e854.tar.gz
external_llvm-4acd20a20be9f7d91ed35c1c6a501cec1605e854.tar.bz2
Lift alignment restrictions for load/store folding on VINSERTF128/VEXTRACTF128. Fixes PR17268.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/opt/opt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 94f4cca..71a9c02 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -462,6 +462,7 @@ static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM,
DisableLoopUnrolling : OptLevel == 0;
Builder.LoopVectorize = OptLevel > 1 && SizeLevel < 2;
+ Builder.SLPVectorize = true;
Builder.populateFunctionPassManager(FPM);
Builder.populateModulePassManager(MPM);