Lines Matching refs:Trunc
72 Value *Trunc = nullptr; in reassociateShiftAmtsOfTwoSameDirectionShifts() local
74 m_CombineOr(m_CombineAnd(m_Trunc(m_Instruction(Sh1)), m_Value(Trunc)), in reassociateShiftAmtsOfTwoSameDirectionShifts()
104 if (Trunc && !AnalyzeForSignBitExtraction && in reassociateShiftAmtsOfTwoSameDirectionShifts()
126 if (HadTwoRightShifts && (Trunc || AnalyzeForSignBitExtraction)) { in reassociateShiftAmtsOfTwoSameDirectionShifts()
145 if (!Trunc) { in reassociateShiftAmtsOfTwoSameDirectionShifts()
159 if (Trunc) { in reassociateShiftAmtsOfTwoSameDirectionShifts()
161 Ret = CastInst::Create(Instruction::Trunc, NewShift, Sh0->getType()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
196 Value *Trunc; in dropRedundantMaskingOfLeftShiftInput() local
197 if (match(Masked, m_CombineAnd(m_Trunc(m_Value(Masked)), m_Value(Trunc))) && in dropRedundantMaskingOfLeftShiftInput()
198 !Trunc->hasOneUse()) in dropRedundantMaskingOfLeftShiftInput()
932 Value *Trunc = Builder.CreateTrunc(NewShift, Ty, "tr.sh.diff"); in visitShl() local
934 return BinaryOperator::CreateAnd(Trunc, ConstantInt::get(Ty, Mask)); in visitShl()
1221 Value *Trunc = Builder.CreateTrunc(SumShift, Ty, I.getName()); in visitLShr() local
1226 return BinaryOperator::CreateAnd(Trunc, ConstantInt::get(Ty, MaskC)); in visitLShr()