Lines Matching refs:Sh1
23 bool canTryToConstantAddTwoShiftAmounts(Value *Sh0, Value *ShAmt0, Value *Sh1, in canTryToConstantAddTwoShiftAmounts() argument
41 (Sh1->getType()->getScalarSizeInBits() - 1); in canTryToConstantAddTwoShiftAmounts()
71 Instruction *Sh1; in reassociateShiftAmtsOfTwoSameDirectionShifts() local
74 m_CombineOr(m_CombineAnd(m_Trunc(m_Instruction(Sh1)), m_Value(Trunc)), in reassociateShiftAmtsOfTwoSameDirectionShifts()
75 m_Instruction(Sh1))); in reassociateShiftAmtsOfTwoSameDirectionShifts()
80 if (!match(Sh1, m_Shift(m_Value(X), m_ZExtOrSelf(m_Value(ShAmt1))))) in reassociateShiftAmtsOfTwoSameDirectionShifts()
84 if (!canTryToConstantAddTwoShiftAmounts(Sh0, ShAmt0, Sh1, ShAmt1)) in reassociateShiftAmtsOfTwoSameDirectionShifts()
89 match(Sh1, m_Shr(m_Value(), m_Value())); in reassociateShiftAmtsOfTwoSameDirectionShifts()
97 bool IdenticalShOpcodes = Sh0->getOpcode() == Sh1->getOpcode(); in reassociateShiftAmtsOfTwoSameDirectionShifts()
155 Sh1->hasNoUnsignedWrap()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
157 Sh1->hasNoSignedWrap()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
159 NewShift->setIsExact(Sh0->isExact() && Sh1->isExact()); in reassociateShiftAmtsOfTwoSameDirectionShifts()