/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 55 Value *X, *ShAmt1; in reassociateShiftAmtsOfTwoSameDirectionShifts() local 56 if (!match(Sh1, m_Shift(m_Value(X), m_ZExtOrSelf(m_Value(ShAmt1))))) in reassociateShiftAmtsOfTwoSameDirectionShifts() 61 if (ShAmt0->getType() != ShAmt1->getType()) in reassociateShiftAmtsOfTwoSameDirectionShifts() 104 SimplifyAddInst(ShAmt0, ShAmt1, /*isNSW=*/false, /*isNUW=*/false, in reassociateShiftAmtsOfTwoSameDirectionShifts()
|
D | InstCombineCasts.cpp | 514 Value *ShVal, *ShAmt0, *ShAmt1; in narrowRotate() local 516 !match(Or1, m_OneUse(m_LogicalShift(m_Specific(ShVal), m_Value(ShAmt1))))) in narrowRotate() 548 Value *ShAmt = matchShiftAmount(ShAmt0, ShAmt1, NarrowWidth); in narrowRotate() 551 ShAmt = matchShiftAmount(ShAmt1, ShAmt0, NarrowWidth); in narrowRotate()
|
D | InstCombineAndOrXor.cpp | 2042 Value *ShVal, *ShAmt0, *ShAmt1; in matchRotate() local 2044 !match(Or1, m_OneUse(m_LogicalShift(m_Specific(ShVal), m_Value(ShAmt1))))) in matchRotate() 2073 Value *ShAmt = matchShiftAmount(ShAmt0, ShAmt1, Width); in matchRotate() 2076 ShAmt = matchShiftAmount(ShAmt1, ShAmt0, Width); in matchRotate()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 56 Value *X, *ShAmt1; in reassociateShiftAmtsOfTwoSameDirectionShifts() local 57 if (!match(Sh1, m_Shift(m_Value(X), m_ZExtOrSelf(m_Value(ShAmt1))))) in reassociateShiftAmtsOfTwoSameDirectionShifts() 62 if (ShAmt0->getType() != ShAmt1->getType()) in reassociateShiftAmtsOfTwoSameDirectionShifts() 105 SimplifyAddInst(ShAmt0, ShAmt1, /*isNSW=*/false, /*isNUW=*/false, in reassociateShiftAmtsOfTwoSameDirectionShifts()
|
D | InstCombineCasts.cpp | 538 Value *ShVal0, *ShVal1, *ShAmt0, *ShAmt1; in narrowFunnelShift() local 540 !match(Or1, m_OneUse(m_LogicalShift(m_Value(ShVal1), m_Value(ShAmt1)))) || in narrowFunnelShift() 548 std::swap(ShAmt0, ShAmt1); in narrowFunnelShift() 583 Value *ShAmt = matchShiftAmount(ShAmt0, ShAmt1, NarrowWidth); in narrowFunnelShift() 586 ShAmt = matchShiftAmount(ShAmt1, ShAmt0, NarrowWidth); in narrowFunnelShift()
|
D | InstCombineAndOrXor.cpp | 2036 Value *ShVal0, *ShVal1, *ShAmt0, *ShAmt1; in matchFunnelShift() local 2038 !match(Or1, m_OneUse(m_LogicalShift(m_Value(ShVal1), m_Value(ShAmt1)))) || in matchFunnelShift() 2046 std::swap(ShAmt0, ShAmt1); in matchFunnelShift() 2111 Value *ShAmt = matchShiftAmount(ShAmt0, ShAmt1, Width); in matchFunnelShift() 2114 ShAmt = matchShiftAmount(ShAmt1, ShAmt0, Width); in matchFunnelShift()
|
/external/llvm-project/llvm/lib/Target/RISCV/ |
D | RISCVISelLowering.cpp | 1420 unsigned ShAmt1 = N->getConstantOperandVal(1); in combineGREVI_GORCI() local 1431 CombinedShAmt = ShAmt1 | ShAmt2; in combineGREVI_GORCI() 1433 CombinedShAmt = ShAmt1 ^ ShAmt2; in combineGREVI_GORCI()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 40658 SDValue ShAmt1 = N1.getOperand(1); in combineOrShiftToFunnelShift() local 40659 if (ShAmt1.getValueType() != ShiftVT) in combineOrShiftToFunnelShift() 40671 if (ShAmt1.getOpcode() == ISD::AND && in combineOrShiftToFunnelShift() 40672 isa<ConstantSDNode>(ShAmt1.getOperand(1)) && in combineOrShiftToFunnelShift() 40673 ShAmt1.getConstantOperandAPInt(1) == (Bits - 1)) { in combineOrShiftToFunnelShift() 40674 ShMsk1 = ShAmt1; in combineOrShiftToFunnelShift() 40675 ShAmt1 = ShAmt1.getOperand(0); in combineOrShiftToFunnelShift() 40680 if (ShAmt1.getOpcode() == ISD::TRUNCATE) in combineOrShiftToFunnelShift() 40681 ShAmt1 = ShAmt1.getOperand(0); in combineOrShiftToFunnelShift() 40690 std::swap(ShAmt0, ShAmt1); in combineOrShiftToFunnelShift() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 28458 SDValue ShAmt1 = N1.getOperand(1); in combineOr() local 28459 if (ShAmt1.getValueType() != MVT::i8) in combineOr() 28463 if (ShAmt1.getOpcode() == ISD::TRUNCATE) in combineOr() 28464 ShAmt1 = ShAmt1.getOperand(0); in combineOr() 28473 std::swap(ShAmt0, ShAmt1); in combineOr() 28477 if (ShAmt1.getOpcode() == ISD::SUB) { in combineOr() 28478 SDValue Sum = ShAmt1.getOperand(0); in combineOr() 28480 SDValue ShAmt1Op1 = ShAmt1.getOperand(1); in combineOr() 28489 } else if (ConstantSDNode *ShAmt1C = dyn_cast<ConstantSDNode>(ShAmt1)) { in combineOr()
|