Lines Matching refs:CondVal
1681 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local
1731 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect()
1756 Value *CondVal = SI.getCondition(); in foldOverflowingAddSubSelect() local
1761 if (!match(CondVal, m_ExtractValue<1>(m_WithOverflowInst(II))) || in foldOverflowingAddSubSelect()
1935 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle() local
1937 if (!CondVal->getType()->isVectorTy() || !match(CondVal, m_Constant(CondC))) in canonicalizeSelectToShuffle()
1940 unsigned NumElts = CondVal->getType()->getVectorNumElements(); in canonicalizeSelectToShuffle()
1943 Type *Int32Ty = Type::getInt32Ty(CondVal->getContext()); in canonicalizeSelectToShuffle()
2327 Value *CondVal = SI.getCondition(); in visitSelectInst() local
2348 if (Value *V = SimplifySelectInst(CondVal, TrueVal, FalseVal, in visitSelectInst()
2363 if (match(CondVal, m_OneUse(m_ICmp(Pred, m_Value(), m_Value()))) && in visitSelectInst()
2366 CmpInst *Cond = cast<CmpInst>(CondVal); in visitSelectInst()
2376 TrueVal->getType() == CondVal->getType()) { in visitSelectInst()
2379 return BinaryOperator::CreateOr(CondVal, FalseVal); in visitSelectInst()
2383 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
2388 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
2392 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
2398 if (CondVal == TrueVal) in visitSelectInst()
2399 return BinaryOperator::CreateOr(CondVal, FalseVal); in visitSelectInst()
2400 if (CondVal == FalseVal) in visitSelectInst()
2401 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
2405 if (match(TrueVal, m_Not(m_Specific(CondVal)))) in visitSelectInst()
2407 if (match(FalseVal, m_Not(m_Specific(CondVal)))) in visitSelectInst()
2418 CondVal->getType()->isVectorTy() == SelType->isVectorTy()) { in visitSelectInst()
2421 return new ZExtInst(CondVal, SelType); in visitSelectInst()
2425 return new SExtInst(CondVal, SelType); in visitSelectInst()
2429 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
2435 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
2441 if (FCmpInst *FCI = dyn_cast<FCmpInst>(CondVal)) { in visitSelectInst()
2473 if (match(CondVal, m_FCmp(Pred, m_Specific(FalseVal), m_AnyZeroFP())) && in visitSelectInst()
2481 if (match(CondVal, m_FCmp(Pred, m_Specific(TrueVal), m_AnyZeroFP())) && in visitSelectInst()
2492 if (match(CondVal, m_FCmp(Pred, m_Specific(FalseVal), m_AnyZeroFP())) && in visitSelectInst()
2504 if (match(CondVal, m_FCmp(Pred, m_Specific(TrueVal), m_AnyZeroFP())) && in visitSelectInst()
2515 if (ICmpInst *ICI = dyn_cast<ICmpInst>(CondVal)) in visitSelectInst()
2563 Value *CmpLHS = cast<CmpInst>(CondVal)->getOperand(0); in visitSelectInst()
2564 Value *CmpRHS = cast<CmpInst>(CondVal)->getOperand(1); in visitSelectInst()
2654 if (TrueSI->getCondition()->getType() == CondVal->getType()) { in visitSelectInst()
2656 if (TrueSI->getCondition() == CondVal) { in visitSelectInst()
2666 Value *And = Builder.CreateAnd(CondVal, TrueSI->getCondition()); in visitSelectInst()
2674 if (FalseSI->getCondition()->getType() == CondVal->getType()) { in visitSelectInst()
2676 if (FalseSI->getCondition() == CondVal) { in visitSelectInst()
2684 Value *Or = Builder.CreateOr(CondVal, FalseSI->getCondition()); in visitSelectInst()
2712 if (TrueBOSI->getCondition() == CondVal) { in visitSelectInst()
2719 if (TrueBOSI->getCondition() == CondVal) { in visitSelectInst()
2732 if (FalseBOSI->getCondition() == CondVal) { in visitSelectInst()
2739 if (FalseBOSI->getCondition() == CondVal) { in visitSelectInst()
2748 if (match(CondVal, m_Not(m_Value(NotCond)))) { in visitSelectInst()
2772 if (!CondVal->getType()->isVectorTy() && !AC.assumptions().empty()) { in visitSelectInst()
2774 computeKnownBits(CondVal, Known, 0, &SI); in visitSelectInst()