Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp847 if (auto *Op0BO = dyn_cast<BinaryOperator>(Op0)) { in FoldShiftByConstant() local
851 if (match(Op0BO->getOperand(1), m_APInt(Op0C))) { in FoldShiftByConstant()
852 if (canShiftBinOpWithConstantRHS(I, Op0BO)) { in FoldShiftByConstant()
854 Builder.CreateBinOp(I.getOpcode(), Op0BO->getOperand(1), C1); in FoldShiftByConstant()
857 Builder.CreateBinOp(I.getOpcode(), Op0BO->getOperand(0), C1); in FoldShiftByConstant()
858 NewShift->takeName(Op0BO); in FoldShiftByConstant()
860 return BinaryOperator::Create(Op0BO->getOpcode(), NewShift, NewRHS); in FoldShiftByConstant()
1173 BinaryOperator *Op0BO; in visitShl() local
1174 if (match(Op0, m_OneUse(m_BinOp(Op0BO))) && in visitShl()
1175 isSuitableBinOpcode(Op0BO->getOpcode())) { in visitShl()
[all …]