Lines Matching refs:Left
657 SmallVectorImpl<Value *> &Left,
663 SmallVectorImpl<Value *> &Left,
1765 ValueList Left, Right; in buildTree_rec() local
1766 reorderInputsAccordingToOpcode(S.getOpcode(), VL, Left, Right); in buildTree_rec()
1767 buildTree_rec(Left, Depth + 1, UserTreeIdx); in buildTree_rec()
1929 ValueList Left, Right; in buildTree_rec() local
1930 reorderAltShuffleOperands(S, VL, Left, Right); in buildTree_rec()
1931 buildTree_rec(Left, Depth + 1, UserTreeIdx); in buildTree_rec()
2653 SmallVectorImpl<Value *> &Left, in reorderAltShuffleOperands() argument
2659 Left.push_back(I->getOperand(0)); in reorderAltShuffleOperands()
2666 if (LoadInst *L = dyn_cast<LoadInst>(Left[j])) { in reorderAltShuffleOperands()
2671 std::swap(Left[j], Right[j]); in reorderAltShuffleOperands()
2675 std::swap(Left[j + 1], Right[j + 1]); in reorderAltShuffleOperands()
2682 if (LoadInst *L1 = dyn_cast<LoadInst>(Left[j + 1])) { in reorderAltShuffleOperands()
2686 std::swap(Left[j], Right[j]); in reorderAltShuffleOperands()
2690 std::swap(Left[j + 1], Right[j + 1]); in reorderAltShuffleOperands()
2706 int i, unsigned Opcode, Instruction &I, ArrayRef<Value *> Left, in shouldReorderOperands() argument
2720 if (SplatLeft && VLeft == Left[i - 1]) in shouldReorderOperands()
2727 if (VLeft == Left[i - 1]) in shouldReorderOperands()
2730 if (VRight == Left[i - 1]) in shouldReorderOperands()
2750 cast<Instruction>(Left[i - 1])->getOpcode() == ILeft->getOpcode()) in shouldReorderOperands()
2757 unsigned LeftPrevOpcode = cast<Instruction>(Left[i - 1])->getOpcode(); in shouldReorderOperands()
2768 SmallVectorImpl<Value *> &Left, in reorderInputsAccordingToOpcode() argument
2779 Left.push_back(VLeft); in reorderInputsAccordingToOpcode()
2784 bool AllSameOpcodeLeft = isa<Instruction>(Left[0]); in reorderInputsAccordingToOpcode()
2799 if (shouldReorderOperands(i, Opcode, *I, Left, Right, AllSameOpcodeLeft, in reorderInputsAccordingToOpcode()
2802 Left.push_back(VRight); in reorderInputsAccordingToOpcode()
2805 Left.push_back(VLeft); in reorderInputsAccordingToOpcode()
2810 SplatLeft = SplatLeft && (Left[i - 1] == Left[i]); in reorderInputsAccordingToOpcode()
2811 AllSameOpcodeLeft = AllSameOpcodeLeft && isa<Instruction>(Left[i]) && in reorderInputsAccordingToOpcode()
2812 (cast<Instruction>(Left[i - 1])->getOpcode() == in reorderInputsAccordingToOpcode()
2813 cast<Instruction>(Left[i])->getOpcode()); in reorderInputsAccordingToOpcode()
2839 if (LoadInst *L = dyn_cast<LoadInst>(Left[j])) { in reorderInputsAccordingToOpcode()
2842 std::swap(Left[j + 1], Right[j + 1]); in reorderInputsAccordingToOpcode()
2848 if (LoadInst *L1 = dyn_cast<LoadInst>(Left[j + 1])) { in reorderInputsAccordingToOpcode()
2850 std::swap(Left[j + 1], Right[j + 1]); in reorderInputsAccordingToOpcode()