Lines Matching refs:Right

658                                  SmallVectorImpl<Value *> &Right);
664 SmallVectorImpl<Value *> &Right);
1765 ValueList Left, Right; in buildTree_rec() local
1766 reorderInputsAccordingToOpcode(S.getOpcode(), VL, Left, Right); in buildTree_rec()
1768 buildTree_rec(Right, Depth + 1, UserTreeIdx); in buildTree_rec()
1929 ValueList Left, Right; in buildTree_rec() local
1930 reorderAltShuffleOperands(S, VL, Left, Right); in buildTree_rec()
1932 buildTree_rec(Right, Depth + 1, UserTreeIdx); in buildTree_rec()
2654 SmallVectorImpl<Value *> &Right) { in reorderAltShuffleOperands() argument
2660 Right.push_back(I->getOperand(1)); in reorderAltShuffleOperands()
2667 if (LoadInst *L1 = dyn_cast<LoadInst>(Right[j + 1])) { in reorderAltShuffleOperands()
2671 std::swap(Left[j], Right[j]); in reorderAltShuffleOperands()
2675 std::swap(Left[j + 1], Right[j + 1]); in reorderAltShuffleOperands()
2681 if (LoadInst *L = dyn_cast<LoadInst>(Right[j])) { in reorderAltShuffleOperands()
2686 std::swap(Left[j], Right[j]); in reorderAltShuffleOperands()
2690 std::swap(Left[j + 1], Right[j + 1]); in reorderAltShuffleOperands()
2707 ArrayRef<Value *> Right, bool AllSameOpcodeLeft, bool AllSameOpcodeRight, in shouldReorderOperands() argument
2713 if (VRight == Right[i - 1]) in shouldReorderOperands()
2716 if (VLeft == Right[i - 1]) { in shouldReorderOperands()
2740 unsigned RightPrevOpcode = cast<Instruction>(Right[i - 1])->getOpcode(); in shouldReorderOperands()
2769 SmallVectorImpl<Value *> &Right) { in reorderInputsAccordingToOpcode() argument
2780 Right.push_back(VRight); in reorderInputsAccordingToOpcode()
2785 bool AllSameOpcodeRight = isa<Instruction>(Right[0]); in reorderInputsAccordingToOpcode()
2799 if (shouldReorderOperands(i, Opcode, *I, Left, Right, AllSameOpcodeLeft, in reorderInputsAccordingToOpcode()
2803 Right.push_back(VLeft); in reorderInputsAccordingToOpcode()
2806 Right.push_back(VRight); in reorderInputsAccordingToOpcode()
2809 SplatRight = SplatRight && (Right[i - 1] == Right[i]); in reorderInputsAccordingToOpcode()
2814 AllSameOpcodeRight = AllSameOpcodeRight && isa<Instruction>(Right[i]) && in reorderInputsAccordingToOpcode()
2815 (cast<Instruction>(Right[i - 1])->getOpcode() == in reorderInputsAccordingToOpcode()
2816 cast<Instruction>(Right[i])->getOpcode()); in reorderInputsAccordingToOpcode()
2840 if (LoadInst *L1 = dyn_cast<LoadInst>(Right[j + 1])) { in reorderInputsAccordingToOpcode()
2842 std::swap(Left[j + 1], Right[j + 1]); in reorderInputsAccordingToOpcode()
2847 if (LoadInst *L = dyn_cast<LoadInst>(Right[j])) { in reorderInputsAccordingToOpcode()
2850 std::swap(Left[j + 1], Right[j + 1]); in reorderInputsAccordingToOpcode()