Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp792 BinaryOperator *TBO; in FoldShiftByConstant() local
794 if (match(Op0, m_Select(m_Value(Cond), m_OneUse(m_BinOp(TBO)), in FoldShiftByConstant()
797 if (!isa<Constant>(FalseVal) && TBO->getOperand(0) == FalseVal && in FoldShiftByConstant()
798 match(TBO->getOperand(1), m_APInt(C)) && in FoldShiftByConstant()
799 canShiftBinOpWithConstantRHS(I, TBO)) { in FoldShiftByConstant()
801 Builder.CreateBinOp(I.getOpcode(), TBO->getOperand(1), C1); in FoldShiftByConstant()
804 Value *NewOp = Builder.CreateBinOp(TBO->getOpcode(), NewShift, NewRHS); in FoldShiftByConstant()