diff options
author | Dinar Temirbulatov <dtemirbulatov@gmail.com> | 2017-08-19 03:15:07 +0000 |
---|---|---|
committer | Dinar Temirbulatov <dtemirbulatov@gmail.com> | 2017-08-19 03:15:07 +0000 |
commit | 7aff8cfa555764f2b6ad03c50dd53bc1972e3ebd (patch) | |
tree | d8b1be3be80ada192757a3007b9db6c00a8171a8 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | e0fe5cd4f3369a827e6789e526dbe45f672e125c (diff) | |
download | bcm5719-llvm-7aff8cfa555764f2b6ad03c50dd53bc1972e3ebd.tar.gz bcm5719-llvm-7aff8cfa555764f2b6ad03c50dd53bc1972e3ebd.zip |
[SLPVectorizer] Tighten up VLeft, VRight declaration, remove unnecessary testcase test/Transforms/SLPVectorizer/X86/reorder.ll, NFCI.
llvm-svn: 311223
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 06ffed9b2a7..8f1c837f727 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -2469,10 +2469,8 @@ void BoUpSLP::reorderInputsAccordingToOpcode(unsigned Opcode, // Peel the first iteration out of the loop since there's nothing // interesting to do anyway and it simplifies the checks in the loop. auto *I = cast<Instruction>(VL[0]); - Value *VLeft; - Value *VRight; - VLeft = I->getOperand(0); - VRight = I->getOperand(1); + Value *VLeft = I->getOperand(0); + Value *VRight = I->getOperand(1); if (!isa<Instruction>(VRight) && isa<Instruction>(VLeft)) // Favor having instruction to the right. FIXME: why? std::swap(VLeft, VRight); |