Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp217 Constant *NewCst = nullptr; in visitMul() local
220 NewCst = ConstantInt::get(NewOp->getType(), IVal->logBase2()); in visitMul()
224 NewCst = getLogBase2Vector(CV); in visitMul()
226 if (NewCst) { in visitMul()
227 unsigned Width = NewCst->getType()->getPrimitiveSizeInBits(); in visitMul()
228 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul()
234 if (match(NewCst, m_ConstantInt(V)) && V != Width - 1) in visitMul()
DInstCombineCompares.cpp1727 Constant *NewCst; in visitICmpInstWithInstAndIntCst() local
1729 NewCst = ConstantExpr::getLShr(RHS, ShAmt); in visitICmpInstWithInstAndIntCst()
1731 NewCst = ConstantExpr::getShl(RHS, ShAmt); in visitICmpInstWithInstAndIntCst()
1735 if (ConstantExpr::get(ShiftOpcode, NewCst, ShAmt) != RHS) { in visitICmpInstWithInstAndIntCst()
1744 ICI.setOperand(1, NewCst); in visitICmpInstWithInstAndIntCst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp173 if (Constant *NewCst = getLogBase2(NewOp->getType(), C1)) { in visitMul() local
174 unsigned Width = NewCst->getType()->getPrimitiveSizeInBits(); in visitMul()
175 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul()
181 if (match(NewCst, m_APInt(V)) && *V != Width - 1) in visitMul()
DInstCombineCompares.cpp1556 APInt NewCst = IsShl ? C1.lshr(*C3) : C1.shl(*C3); in foldICmpAndShift() local
1557 APInt SameAsC1 = IsShl ? NewCst.shl(*C3) : NewCst.lshr(*C3); in foldICmpAndShift()
1568 Cmp.setOperand(1, ConstantInt::get(And->getType(), NewCst)); in foldICmpAndShift()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp123 Constant *NewCst = ConstantInt::get(Op0->getType(), Val.logBase2()); in visitMul() local
124 BinaryOperator *Shl = BinaryOperator::CreateShl(Op0, NewCst); in visitMul()
DInstCombineCompares.cpp1146 Constant *NewCst; in visitICmpInstWithInstAndIntCst() local
1148 NewCst = ConstantExpr::getLShr(RHS, ShAmt); in visitICmpInstWithInstAndIntCst()
1150 NewCst = ConstantExpr::getShl(RHS, ShAmt); in visitICmpInstWithInstAndIntCst()
1155 NewCst, ShAmt) != RHS) { in visitICmpInstWithInstAndIntCst()
1166 ICI.setOperand(1, NewCst); in visitICmpInstWithInstAndIntCst()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DSimplifyCFG.cpp2006 Constant *NewCst = ConstantInt::getFalse(BB->getContext()); in TryToSimplifyUncondBranchWithICmpInIt() local
2009 std::swap(DefaultCst, NewCst); in TryToSimplifyUncondBranchWithICmpInIt()
2026 PHIUse->addIncoming(NewCst, NewBB); in TryToSimplifyUncondBranchWithICmpInIt()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86ISelDAGToDAG.cpp1828 SDValue NewCst = CurDAG->getTargetConstant(Val >> ShlVal, CstVT); in Select() local
1829 SDNode *New = CurDAG->getMachineNode(Op, dl, NVT, N0->getOperand(0),NewCst); in Select()
/external/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp2105 SDValue NewCst = CurDAG->getTargetConstant(Val >> ShlVal, dl, CstVT); in Select() local
2106 SDNode *New = CurDAG->getMachineNode(Op, dl, NVT, N0->getOperand(0),NewCst); in Select()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp3209 Constant *NewCst = ConstantInt::getFalse(BB->getContext()); in TryToSimplifyUncondBranchWithICmpInIt() local
3212 std::swap(DefaultCst, NewCst); in TryToSimplifyUncondBranchWithICmpInIt()
3244 PHIUse->addIncoming(NewCst, NewBB); in TryToSimplifyUncondBranchWithICmpInIt()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp3604 Constant *NewCst = ConstantInt::getFalse(BB->getContext()); in tryToSimplifyUncondBranchWithICmpInIt() local
3607 std::swap(DefaultCst, NewCst); in tryToSimplifyUncondBranchWithICmpInIt()
3637 PHIUse->addIncoming(NewCst, NewBB); in tryToSimplifyUncondBranchWithICmpInIt()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp2891 SDValue NewCst = CurDAG->getTargetConstant(Val >> ShlVal, dl, CstVT); in Select() local
2892 SDNode *New = CurDAG->getMachineNode(Op, dl, NVT, N0->getOperand(0),NewCst); in Select()