Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DDivRemPairs.cpp75 Instruction *DivInst = DivMap[RemPair.first]; in optimizeDivRem() local
76 if (!DivInst) in optimizeDivRem()
83 bool IsSigned = DivInst->getOpcode() == Instruction::SDiv; in optimizeDivRem()
84 bool HasDivRemOp = TTI.hasDivRemOp(DivInst->getType(), IsSigned); in optimizeDivRem()
89 if (HasDivRemOp && RemInst->getParent() == DivInst->getParent()) in optimizeDivRem()
92 bool DivDominates = DT.dominates(DivInst, RemInst); in optimizeDivRem()
93 if (!DivDominates && !DT.dominates(RemInst, DivInst)) in optimizeDivRem()
100 RemInst->moveAfter(DivInst); in optimizeDivRem()
102 DivInst->moveAfter(RemInst); in optimizeDivRem()
110 Instruction *Mul = BinaryOperator::CreateMul(DivInst, Y); in optimizeDivRem()
[all …]