From ce2660d63970897099a8b541a908ed82f96b7697 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Sat, 20 Apr 2013 07:29:34 +0000 Subject: [PATCH] SLPVectorizer: Reduce the compile time by eliminating the search for some of the more expensive patterns. After this change will only check basic arithmetic trees that start at cmpinstr. llvm-svn: 179933 --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 6f4d69e34240..3a0e9abe5781 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -261,7 +261,7 @@ bool SLPVectorizer::vectorizeReductions(BasicBlock *BB, BoUpSLP &R) { } for (int i = 0; i < 2; ++i) if (BinaryOperator *BI = dyn_cast(CI->getOperand(i))) - Changed |= tryToVectorize(BI, R); + Changed |= tryToVectorizePair(BI->getOperand(0), BI->getOperand(1), R); continue; } }