mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
SLPVectorizer: Swap LHS and RHS. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3778c04b2e
commit
985eb9004c
@ -730,15 +730,15 @@ Value *BoUpSLP::vectorizeTree_rec(ArrayRef<Value *> VL, int VF) {
|
||||
case Instruction::Xor: {
|
||||
ValueList LHSVL, RHSVL;
|
||||
for (int i = 0; i < VF; ++i) {
|
||||
RHSVL.push_back(cast<Instruction>(VL[i])->getOperand(0));
|
||||
LHSVL.push_back(cast<Instruction>(VL[i])->getOperand(1));
|
||||
LHSVL.push_back(cast<Instruction>(VL[i])->getOperand(0));
|
||||
RHSVL.push_back(cast<Instruction>(VL[i])->getOperand(1));
|
||||
}
|
||||
|
||||
Value *RHS = vectorizeTree_rec(RHSVL, VF);
|
||||
Value *LHS = vectorizeTree_rec(LHSVL, VF);
|
||||
Value *RHS = vectorizeTree_rec(RHSVL, VF);
|
||||
IRBuilder<> Builder(GetLastInstr(VL, VF));
|
||||
BinaryOperator *BinOp = cast<BinaryOperator>(VL0);
|
||||
Value *V = Builder.CreateBinOp(BinOp->getOpcode(), RHS,LHS);
|
||||
Value *V = Builder.CreateBinOp(BinOp->getOpcode(), LHS,RHS);
|
||||
|
||||
for (int i = 0; i < VF; ++i)
|
||||
VectorizedValues[VL[i]] = V;
|
||||
|
Loading…
Reference in New Issue
Block a user