Lines Matching refs:CondVal
844 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local
894 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect()
913 Value *CondVal = SI.getCondition(); in visitSelectInst() local
919 SimplifySelectInst(CondVal, TrueVal, FalseVal, DL, TLI, DT, AC)) in visitSelectInst()
923 TrueVal->getType() == CondVal->getType()) { in visitSelectInst()
926 return BinaryOperator::CreateOr(CondVal, FalseVal); in visitSelectInst()
930 Value *NotCond = Builder->CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
935 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
939 Value *NotCond = Builder->CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
945 if (CondVal == TrueVal) in visitSelectInst()
946 return BinaryOperator::CreateOr(CondVal, FalseVal); in visitSelectInst()
947 if (CondVal == FalseVal) in visitSelectInst()
948 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
952 if (match(TrueVal, m_Not(m_Specific(CondVal)))) in visitSelectInst()
954 if (match(FalseVal, m_Not(m_Specific(CondVal)))) in visitSelectInst()
964 if (CondVal->getType()->isVectorTy() == SelType->isVectorTy()) { in visitSelectInst()
967 return new ZExtInst(CondVal, SelType); in visitSelectInst()
971 return new SExtInst(CondVal, SelType); in visitSelectInst()
975 Value *NotCond = Builder->CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
981 Value *NotCond = Builder->CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst()
992 if (FCmpInst *FCI = dyn_cast<FCmpInst>(CondVal)) { in visitSelectInst()
1084 if (ICmpInst *ICI = dyn_cast<ICmpInst>(CondVal)) in visitSelectInst()
1188 if (TrueSI->getCondition()->getType() == CondVal->getType()) { in visitSelectInst()
1190 if (TrueSI->getCondition() == CondVal) { in visitSelectInst()
1200 Value *And = Builder->CreateAnd(CondVal, TrueSI->getCondition()); in visitSelectInst()
1208 if (FalseSI->getCondition()->getType() == CondVal->getType()) { in visitSelectInst()
1210 if (FalseSI->getCondition() == CondVal) { in visitSelectInst()
1218 Value *Or = Builder->CreateOr(CondVal, FalseSI->getCondition()); in visitSelectInst()
1226 if (BinaryOperator::isNot(CondVal)) { in visitSelectInst()
1227 SI.setOperand(0, BinaryOperator::getNotArgument(CondVal)); in visitSelectInst()
1243 if (isa<ConstantAggregateZero>(CondVal)) { in visitSelectInst()