Searched refs:Op0BO (Results 1 – 5 of 5) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 403 if (BinaryOperator *Op0BO = dyn_cast<BinaryOperator>(Op0)) { in FoldShiftByConstant() local 407 switch (Op0BO->getOpcode()) { in FoldShiftByConstant() 415 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() && in FoldShiftByConstant() 416 match(Op0BO->getOperand(1), m_Shr(m_Value(V1), in FoldShiftByConstant() 419 Builder->CreateShl(Op0BO->getOperand(0), Op1, Op0BO->getName()); in FoldShiftByConstant() 421 Value *X = Builder->CreateBinOp(Op0BO->getOpcode(), YS, V1, in FoldShiftByConstant() 422 Op0BO->getOperand(1)->getName()); in FoldShiftByConstant() 429 Value *Op0BOOp1 = Op0BO->getOperand(1); in FoldShiftByConstant() 436 Builder->CreateShl(Op0BO->getOperand(0), Op1, in FoldShiftByConstant() 437 Op0BO->getName()); in FoldShiftByConstant() [all …]
|
D | InstCombineMulDivRem.cpp | 195 Value *Op0BO = BO->getOperand(0), *Op1BO = BO->getOperand(1); in visitMul() local 201 return ReplaceInstUsesWith(I, Op0BO); in visitMul() 202 return BinaryOperator::CreateNeg(Op0BO); in visitMul() 207 Rem = Builder->CreateURem(Op0BO, Op1BO); in visitMul() 209 Rem = Builder->CreateSRem(Op0BO, Op1BO); in visitMul() 213 return BinaryOperator::CreateSub(Op0BO, Rem); in visitMul() 214 return BinaryOperator::CreateSub(Rem, Op0BO); in visitMul()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 424 if (BinaryOperator *Op0BO = dyn_cast<BinaryOperator>(Op0)) { in FoldShiftByConstant() local 428 switch (Op0BO->getOpcode()) { in FoldShiftByConstant() 436 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() && in FoldShiftByConstant() 437 match(Op0BO->getOperand(1), m_Shr(m_Value(V1), in FoldShiftByConstant() 440 Builder.CreateShl(Op0BO->getOperand(0), Op1, Op0BO->getName()); in FoldShiftByConstant() 442 Value *X = Builder.CreateBinOp(Op0BO->getOpcode(), YS, V1, in FoldShiftByConstant() 443 Op0BO->getOperand(1)->getName()); in FoldShiftByConstant() 454 Value *Op0BOOp1 = Op0BO->getOperand(1); in FoldShiftByConstant() 460 Builder.CreateShl(Op0BO->getOperand(0), Op1, Op0BO->getName()); in FoldShiftByConstant() 464 return BinaryOperator::Create(Op0BO->getOpcode(), YS, XM); in FoldShiftByConstant() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 415 if (BinaryOperator *Op0BO = dyn_cast<BinaryOperator>(Op0)) { in FoldShiftByConstant() local 419 switch (Op0BO->getOpcode()) { in FoldShiftByConstant() 427 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() && in FoldShiftByConstant() 428 match(Op0BO->getOperand(1), m_Shr(m_Value(V1), in FoldShiftByConstant() 431 Builder->CreateShl(Op0BO->getOperand(0), Op1, Op0BO->getName()); in FoldShiftByConstant() 433 Value *X = Builder->CreateBinOp(Op0BO->getOpcode(), YS, V1, in FoldShiftByConstant() 434 Op0BO->getOperand(1)->getName()); in FoldShiftByConstant() 445 Value *Op0BOOp1 = Op0BO->getOperand(1); in FoldShiftByConstant() 451 Builder->CreateShl(Op0BO->getOperand(0), Op1, in FoldShiftByConstant() 452 Op0BO->getName()); in FoldShiftByConstant() [all …]
|
D | InstCombineMulDivRem.cpp | 320 Value *Op0BO = BO->getOperand(0), *Op1BO = BO->getOperand(1); in visitMul() local 326 return replaceInstUsesWith(I, Op0BO); in visitMul() 327 return BinaryOperator::CreateNeg(Op0BO); in visitMul() 332 Rem = Builder->CreateURem(Op0BO, Op1BO); in visitMul() 334 Rem = Builder->CreateSRem(Op0BO, Op1BO); in visitMul() 338 return BinaryOperator::CreateSub(Op0BO, Rem); in visitMul() 339 return BinaryOperator::CreateSub(Rem, Op0BO); in visitMul()
|