From 4b924d3a61442fb70773057d40789ed1e3187a77 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Wed, 10 Apr 2013 19:41:36 +0000 Subject: Make the SLP store-merger less paranoid about function calls. We check for function calls when we check if it is safe to sink instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179207 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/SLPVectorizer.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/Transforms/Vectorize/SLPVectorizer.cpp') diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index 01b2b92870..21bdec83f0 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -65,10 +65,6 @@ struct SLPVectorizer : public BasicBlockPass { /// if we flush the chain creation every time we run into a memory barrier. bool CollectStores(BasicBlock *BB, BoUpSLP &R) { for (BasicBlock::iterator it = BB->begin(), e = BB->end(); it != e; ++it) { - // Can't vectorize instructions with side effects. - if (it->mayThrow()) - return false; - StoreInst *SI = dyn_cast(it); if (!SI) continue; -- cgit v1.2.3-18-g5258