Home
last modified time | relevance | path

Searched refs:NewShAmt (Results 1 – 6 of 6) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp103 auto *NewShAmt = dyn_cast_or_null<Constant>( in reassociateShiftAmtsOfTwoSameDirectionShifts() local
106 if (!NewShAmt) in reassociateShiftAmtsOfTwoSameDirectionShifts()
108 unsigned NewShAmtBitWidth = NewShAmt->getType()->getScalarSizeInBits(); in reassociateShiftAmtsOfTwoSameDirectionShifts()
111 if (!match(NewShAmt, m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_ULT, in reassociateShiftAmtsOfTwoSameDirectionShifts()
122 if (!match(NewShAmt, in reassociateShiftAmtsOfTwoSameDirectionShifts()
134 NewShAmt = ConstantExpr::getZExtOrBitCast(NewShAmt, X->getType()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
136 BinaryOperator *NewShift = BinaryOperator::Create(ShiftOpcode, X, NewShAmt); in reassociateShiftAmtsOfTwoSameDirectionShifts()
1143 unsigned NewShAmt = std::min(ShAmt, SrcTyBitWidth - 1); in visitLShr() local
1144 Value *AShr = Builder.CreateAShr(X, NewShAmt); in visitLShr()
DInstCombineCompares.cpp3555 auto *NewShAmt = dyn_cast_or_null<Constant>( in foldShiftIntoShiftInAnotherHandOfAndInICmp() local
3558 if (!NewShAmt) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3560 NewShAmt = ConstantExpr::getZExtOrBitCast(NewShAmt, WidestTy); in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3565 if (!match(NewShAmt, in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3572 auto CanFold = [NewShAmt, WidestBitWidth, NarrowestShift, SQ, in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3577 Constant *NewShAmtSplat = NewShAmt->getType()->isVectorTy() in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3578 ? NewShAmt->getSplatValue() in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3579 : NewShAmt; in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3624 ? Builder.CreateLShr(X, NewShAmt) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3625 : Builder.CreateShl(X, NewShAmt); in foldShiftIntoShiftInAnotherHandOfAndInICmp()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp104 auto *NewShAmt = dyn_cast_or_null<Constant>( in reassociateShiftAmtsOfTwoSameDirectionShifts() local
107 if (!NewShAmt) in reassociateShiftAmtsOfTwoSameDirectionShifts()
109 unsigned NewShAmtBitWidth = NewShAmt->getType()->getScalarSizeInBits(); in reassociateShiftAmtsOfTwoSameDirectionShifts()
112 if (!match(NewShAmt, m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_ULT, in reassociateShiftAmtsOfTwoSameDirectionShifts()
123 if (!match(NewShAmt, in reassociateShiftAmtsOfTwoSameDirectionShifts()
135 NewShAmt = ConstantExpr::getZExtOrBitCast(NewShAmt, X->getType()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
137 BinaryOperator *NewShift = BinaryOperator::Create(ShiftOpcode, X, NewShAmt); in reassociateShiftAmtsOfTwoSameDirectionShifts()
1128 unsigned NewShAmt = std::min(ShAmt, SrcTyBitWidth - 1); in visitLShr() local
1129 Value *AShr = Builder.CreateAShr(X, NewShAmt); in visitLShr()
DInstCombineCasts.cpp1527 Constant *NewShAmt = ConstantExpr::getSub( in visitSExt() local
1530 NewShAmt = in visitSExt()
1531 Constant::mergeUndefsWith(Constant::mergeUndefsWith(NewShAmt, BA), CA); in visitSExt()
1532 A = Builder.CreateShl(A, NewShAmt, CI.getName()); in visitSExt()
1533 return BinaryOperator::CreateAShr(A, NewShAmt); in visitSExt()
DInstCombineCompares.cpp3598 auto *NewShAmt = dyn_cast_or_null<Constant>( in foldShiftIntoShiftInAnotherHandOfAndInICmp() local
3601 if (!NewShAmt) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3603 NewShAmt = ConstantExpr::getZExtOrBitCast(NewShAmt, WidestTy); in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3608 if (!match(NewShAmt, in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3615 auto CanFold = [NewShAmt, WidestBitWidth, NarrowestShift, SQ, in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3620 Constant *NewShAmtSplat = NewShAmt->getType()->isVectorTy() in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3621 ? NewShAmt->getSplatValue() in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3622 : NewShAmt; in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3667 ? Builder.CreateLShr(X, NewShAmt) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3668 : Builder.CreateShl(X, NewShAmt); in foldShiftIntoShiftInAnotherHandOfAndInICmp()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp227 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue() local
228 if (NewShAmt >= TypeWidth) in GetShiftedValue()
231 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
270 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue() local
271 if (NewShAmt >= TypeWidth) in GetShiftedValue()
274 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()