diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-04-10 19:41:36 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-04-10 19:41:36 +0000 |
commit | 4b924d3a61442fb70773057d40789ed1e3187a77 (patch) | |
tree | a9bfc1ec415b646ae558ad8b1fcda68fa9860b63 /lib | |
parent | 20cd5e68626ff1af698201fb34f86a59e15c2ff8 (diff) | |
download | external_llvm-4b924d3a61442fb70773057d40789ed1e3187a77.zip external_llvm-4b924d3a61442fb70773057d40789ed1e3187a77.tar.gz external_llvm-4b924d3a61442fb70773057d40789ed1e3187a77.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Vectorize/SLPVectorizer.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index 01b2b92..21bdec8 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<StoreInst>(it); if (!SI) continue; |