Lines Matching refs:CondVal
1213 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local
1263 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect()
1345 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle() local
1347 if (!CondVal->getType()->isVectorTy() || !match(CondVal, m_Constant(CondC))) in canonicalizeSelectToShuffle()
1350 unsigned NumElts = CondVal->getType()->getVectorNumElements(); in canonicalizeSelectToShuffle()
1353 Type *Int32Ty = Type::getInt32Ty(CondVal->getContext()); in canonicalizeSelectToShuffle()
1611 Value *CondVal = SI.getCondition(); in visitSelectInst() local
1632 if (Value *V = SimplifySelectInst(CondVal, TrueVal, FalseVal, in visitSelectInst()
1644 if (match(CondVal, m_OneUse(m_ICmp(Pred, m_Value(), m_Value()))) && in visitSelectInst()
1647 CmpInst *Cond = cast<CmpInst>(CondVal); in visitSelectInst()
1657 TrueVal->getType() == CondVal->getType()) { in visitSelectInst()
1660 return BinaryOperator::CreateOr(CondVal, FalseVal); in visitSelectInst()
1664 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
1669 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
1673 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
1679 if (CondVal == TrueVal) in visitSelectInst()
1680 return BinaryOperator::CreateOr(CondVal, FalseVal); in visitSelectInst()
1681 if (CondVal == FalseVal) in visitSelectInst()
1682 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
1686 if (match(TrueVal, m_Not(m_Specific(CondVal)))) in visitSelectInst()
1688 if (match(FalseVal, m_Not(m_Specific(CondVal)))) in visitSelectInst()
1699 CondVal->getType()->isVectorTy() == SelType->isVectorTy()) { in visitSelectInst()
1702 return new ZExtInst(CondVal, SelType); in visitSelectInst()
1706 return new SExtInst(CondVal, SelType); in visitSelectInst()
1710 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
1716 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
1722 if (FCmpInst *FCI = dyn_cast<FCmpInst>(CondVal)) { in visitSelectInst()
1794 if (ICmpInst *ICI = dyn_cast<ICmpInst>(CondVal)) in visitSelectInst()
1840 Value *CmpLHS = cast<CmpInst>(CondVal)->getOperand(0); in visitSelectInst()
1841 Value *CmpRHS = cast<CmpInst>(CondVal)->getOperand(1); in visitSelectInst()
1912 if (TrueSI->getCondition()->getType() == CondVal->getType()) { in visitSelectInst()
1914 if (TrueSI->getCondition() == CondVal) { in visitSelectInst()
1924 Value *And = Builder.CreateAnd(CondVal, TrueSI->getCondition()); in visitSelectInst()
1932 if (FalseSI->getCondition()->getType() == CondVal->getType()) { in visitSelectInst()
1934 if (FalseSI->getCondition() == CondVal) { in visitSelectInst()
1942 Value *Or = Builder.CreateOr(CondVal, FalseSI->getCondition()); in visitSelectInst()
1970 if (TrueBOSI->getCondition() == CondVal) { in visitSelectInst()
1977 if (TrueBOSI->getCondition() == CondVal) { in visitSelectInst()
1990 if (FalseBOSI->getCondition() == CondVal) { in visitSelectInst()
1997 if (FalseBOSI->getCondition() == CondVal) { in visitSelectInst()
2006 if (match(CondVal, m_Not(m_Value(NotCond)))) { in visitSelectInst()
2030 if (!CondVal->getType()->isVectorTy() && !AC.assumptions().empty()) { in visitSelectInst()
2032 computeKnownBits(CondVal, Known, 0, &SI); in visitSelectInst()