summaryrefslogtreecommitdiff
path: root/lib/Transforms/Vectorize
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-10-30 19:47:37 +0000
committerHal Finkel <hfinkel@anl.gov>2012-10-30 19:47:37 +0000
commit8a69a95f913dadae92d2ce0b3ac551610bf868e0 (patch)
tree09ab18d5479231040fea2ddea06263ce8ce7db71 /lib/Transforms/Vectorize
parentb33b34a7dc447cf52702b8892c9829344e81f73a (diff)
downloadllvm-8a69a95f913dadae92d2ce0b3ac551610bf868e0.tar.gz
llvm-8a69a95f913dadae92d2ce0b3ac551610bf868e0.tar.bz2
llvm-8a69a95f913dadae92d2ce0b3ac551610bf868e0.tar.xz
BBVectorize: Fix a small bug introduced in r167042.
We need to make sure that we take the correct load/store alignment when the inputs are flipped. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize')
-rw-r--r--lib/Transforms/Vectorize/BBVectorize.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Transforms/Vectorize/BBVectorize.cpp b/lib/Transforms/Vectorize/BBVectorize.cpp
index b29a45e9e8..32a18f2108 100644
--- a/lib/Transforms/Vectorize/BBVectorize.cpp
+++ b/lib/Transforms/Vectorize/BBVectorize.cpp
@@ -2472,7 +2472,6 @@ namespace {
Instruction *L = I, *H = J;
if (FlipMemInputs)
std::swap(H, L);
- FlipMemInputs = false;
unsigned NumOperands = I->getNumOperands();
SmallVector<Value *, 3> ReplacedOperands(NumOperands);