Home
last modified time | relevance | path

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

/external/llvm/lib/VMCore/
DConstantFold.cpp1035 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) in ConstantFoldBinaryInstruction() local
1036 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1069 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1072 if (CI2->equalsInt(0)) return C1; // X + 0 == X in ConstantFoldBinaryInstruction()
1075 if (CI2->equalsInt(0)) return C1; // X - 0 == X in ConstantFoldBinaryInstruction()
1078 if (CI2->equalsInt(0)) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction()
1079 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1084 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1086 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction()
1087 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction()
[all …]
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1541 ConstantInt *CI2; in SimplifyICmpInst() local
1542 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
1544 Upper = CI2->getValue(); in SimplifyICmpInst()
1545 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
1547 Upper = CI2->getValue().abs(); in SimplifyICmpInst()
1549 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
1552 if (!CI2->isZero()) in SimplifyICmpInst()
1553 Upper = NegOne.udiv(CI2->getValue()) + 1; in SimplifyICmpInst()
1554 } else if (match(LHS, m_SDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
1558 APInt Val = CI2->getValue().abs(); in SimplifyICmpInst()
[all …]
/external/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp77 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High); in operator ()() local
78 return CI1->getValue().slt(CI2->getValue()); in operator ()()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h186 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High); in operator() local
187 return CI1->getValue().slt(CI2->getValue()); in operator()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1634 ConstantInt *CI2, ConstantInt *CI1, in ProcessUGT_ADDCST_ADD() argument
1647 if (!CI2->getValue().isPowerOf2()) return 0; in ProcessUGT_ADDCST_ADD()
1648 unsigned NewWidth = CI2->getValue().countTrailingZeros(); in ProcessUGT_ADDCST_ADD()
1858 ConstantInt *CI2; // I = icmp ugt (add (add A, B), CI2), CI in visitICmpInst() local
1860 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst()
1861 if (Instruction *Res = ProcessUGT_ADDCST_ADD(I, A, B, CI2, CI, *this)) in visitICmpInst()
2238 if (BitCastInst *CI2 = dyn_cast<BitCastInst>(Op1)) in visitICmpInst() local
2239 Op1 = CI2->getOperand(0); in visitICmpInst()
DInstCombineAndOrXor.cpp1738 ConstantInt *CI2 = 0; in FoldOrWithConstants() local
1739 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return 0; in FoldOrWithConstants()
1741 APInt Xor = CI1->getValue() ^ CI2->getValue(); in FoldOrWithConstants()