summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-04-10 19:41:36 +0000
committerNadav Rotem <nrotem@apple.com>2013-04-10 19:41:36 +0000
commit4b924d3a61442fb70773057d40789ed1e3187a77 (patch)
treea9bfc1ec415b646ae558ad8b1fcda68fa9860b63 /lib/Transforms
parent20cd5e68626ff1af698201fb34f86a59e15c2ff8 (diff)
downloadllvm-4b924d3a61442fb70773057d40789ed1e3187a77.tar.gz
llvm-4b924d3a61442fb70773057d40789ed1e3187a77.tar.bz2
llvm-4b924d3a61442fb70773057d40789ed1e3187a77.tar.xz
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/Transforms')
-rw-r--r--lib/Transforms/Vectorize/SLPVectorizer.cpp4
1 files changed, 0 insertions, 4 deletions
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<StoreInst>(it);
if (!SI)
continue;