reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/IR/PatternMatch.h
 1444     auto *Cmp = dyn_cast<CmpInst_t>(SI->getCondition());
lib/Analysis/IVDescriptors.cpp
  525   CmpInst *CI = dyn_cast<CmpInst>(SI->getCondition());
lib/Analysis/InlineCost.cpp
 1365       dyn_cast_or_null<Constant>(SimplifiedValues.lookup(SI.getCondition()));
lib/Analysis/InstructionSimplify.cpp
  415   Value *Cond = SI->getCondition();
 2259   CmpInst *Cmp = dyn_cast<CmpInst>(SI->getCondition());
lib/Analysis/LazyValueInfo.cpp
  941   Value *Cond = SI->getCondition();
lib/Analysis/MemoryBuiltins.cpp
 1040   Value *Size = Builder.CreateSelect(I.getCondition(), TrueSide.first,
 1042   Value *Offset = Builder.CreateSelect(I.getCondition(), TrueSide.second,
lib/Analysis/ScalarEvolution.cpp
 4353             compareWithBackedgeCondition(SI->getCondition());
lib/Analysis/TargetTransformInfo.cpp
  905       auto *CI = cast<CmpInst>(SI->getCondition());
  910       auto *CI = cast<CmpInst>(SI->getCondition());
lib/Analysis/ValueTracking.cpp
 5060   CmpInst *CmpI = dyn_cast<CmpInst>(SI->getCondition());
lib/CodeGen/CodeGenPrepare.cpp
 3437             CurrentSelect->getCondition(), Dummy, Dummy,
 5861   CmpInst *Cmp = dyn_cast<CmpInst>(SI->getCondition());
 5889     assert(DefSI->getCondition() == SI->getCondition() &&
 5889     assert(DefSI->getCondition() == SI->getCondition() &&
 5944     if (I && SI->getCondition() == I->getCondition()) {
 5944     if (I && SI->getCondition() == I->getCondition()) {
 5956   bool VectorCond = !SI->getCondition()->getType()->isIntegerTy(1);
 6073   IRBuilder<>(SI).CreateCondBr(SI->getCondition(), TT, FT, SI);
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
  674   Value *CondV = SelI->getCondition();
  789   Value *CondV = SelI->getCondition();
 1637         return B.CreateSelect(Sel->getCondition(),
 1645         return B.CreateSelect(Sel->getCondition(),
 1659       Value *C = Sel->getCondition();
 1661         if (Sel0->getCondition() == C)
 1665         if (Sel1->getCondition() == C)
lib/Transforms/InstCombine/InstCombineAddSub.cpp
 1364         return SelectInst::Create(SI->getCondition(), N, A);
 1368         return SelectInst::Create(SI->getCondition(), A, N);
lib/Transforms/InstCombine/InstCombineCasts.cpp
  282     auto *Cmp = dyn_cast<CmpInst>(Sel->getCondition());
lib/Transforms/InstCombine/InstCombineCompares.cpp
 2634   if (!match(SI->getCondition(), m_ICmp(PredA, m_Value(LHS), m_Value(RHS))) ||
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
 1039         return SelectInst::Create(SI->getCondition(), V1, V2);
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  605   Value *SelectCond = SI->getCondition();
 1031         Inst = SelectInst::Create(cast<SelectInst>(ActionOp1)->getCondition(),
lib/Transforms/InstCombine/InstCombineSelect.cpp
   64   if (!match(Sel.getCondition(), m_Cmp(Pred, m_Value(X), m_Constant(C))))
  295   Value *Cond = SI.getCondition();
  447             Value *NewSel = Builder.CreateSelect(SI.getCondition(), OOp, C);
  478             Value *NewSel = Builder.CreateSelect(SI.getCondition(), C, OOp);
 1608         Builder.CreateSelect(SI->getCondition(), SI->getFalseValue(),
 1667   Value *CondVal = SI.getCondition();
 1754   Value *Cond = Sel.getCondition();
 1799   Value *CondVal = SI.getCondition();
 1845   Value *Cond = Sel.getCondition();
 1863   Value *Cond = Sel.getCondition();
 1946       if (Select->getCondition() == SI.getCondition())
 1946       if (Select->getCondition() == SI.getCondition())
 1952   auto *CmpXchg = isExtractFromCmpXchg(SI.getCondition(), 1);
 2175   Value *Cond = Sel.getCondition();
 2191   Value *CondVal = SI.getCondition();
 2455               cast<FPMathOperator>(SI.getCondition())->getFastMathFlags();
 2524   if (auto *PN = dyn_cast<PHINode>(SI.getCondition()))
 2532     if (TrueSI->getCondition()->getType() == CondVal->getType()) {
 2534       if (TrueSI->getCondition() == CondVal) {
 2544         Value *And = Builder.CreateAnd(CondVal, TrueSI->getCondition());
 2552     if (FalseSI->getCondition()->getType() == CondVal->getType()) {
 2554       if (FalseSI->getCondition() == CondVal) {
 2562         Value *Or = Builder.CreateOr(CondVal, FalseSI->getCondition());
 2590       if (TrueBOSI->getCondition() == CondVal) {
 2597       if (TrueBOSI->getCondition() == CondVal) {
 2610       if (FalseBOSI->getCondition() == CondVal) {
 2617       if (FalseBOSI->getCondition() == CondVal) {
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
 1359     if (Sel->getCondition()->getType()->isVectorTy()) {
 1370     if (auto *CV = dyn_cast<ConstantVector>(Sel->getCondition())) {
lib/Transforms/InstCombine/InstructionCombining.cpp
  893   if (auto *CI = dyn_cast<CmpInst>(SI->getCondition())) {
  904   return SelectInst::Create(SI->getCondition(), NewTV, NewFV, "", nullptr, SI);
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
  913       bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint,
  975       assert(checkHoistValue(SI->getCondition(), InsertPoint, DT,
 1047     ConditionValues.insert(SI->getCondition());
 1421       bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, DT,
 1515       hoistValue(SI->getCondition(), HoistPoint, R, Scope->HoistStopMap,
 1531     if (isa<SelectInst>(U) && cast<SelectInst>(U)->getCondition() == ICmp)
 1683       Value *V = SI->getCondition();
 1940   Value *Cond = SI->getCondition();
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
 1460   Value *CondShadow = DFSF.getShadow(I.getCondition());
 1464   if (isa<VectorType>(I.getCondition()->getType())) {
 1475           SelectInst::Create(I.getCondition(), TrueShadow, FalseShadow, "", &I);
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 3508     Value *B = I.getCondition();
 3551           &I, IRB.CreateSelect(Sb, getOrigin(I.getCondition()),
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
 1352   auto *Step = Builder.CreateZExt(SI.getCondition(), Int64Ty);
 1383   if (SI.getCondition()->getType()->isVectorTy())
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  129   Constant *C = LVI->getConstant(S->getCondition(), S->getParent(), S);
  230       Value *Condition = SI->getCondition();
lib/Transforms/Scalar/JumpThreading.cpp
  918         ComputeValueKnownInPredecessorsImpl(SI->getCondition(), BB, Conds,
 2443   BranchInst::Create(NewBB, BB, SI->getCondition(), Pred);
 2579       Value *Cond = SI->getCondition();
 2608         SplitBlockAndInsertIfThen(SI->getCondition(), SI, false);
lib/Transforms/Scalar/LoopUnswitch.cpp
  814         Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), currentLoop,
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
  251   ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition());
  255     CI = dyn_cast<CallInst>(BSI.getCondition());
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  973         return SelectInst::Create(SI->getCondition(), Undef, Undef, Name, SI);
lib/Transforms/Scalar/SCCP.cpp
  947   LatticeVal CondValue = getValueState(I.getCondition());
lib/Transforms/Scalar/SROA.cpp
  626   if (ConstantInt *CI = dyn_cast<ConstantInt>(SI.getCondition()))
 1383     Value *V = IRB.CreateSelect(SI.getCondition(), TL, FL,
lib/Transforms/Utils/SimplifyCFG.cpp
 3529   Value *Condition = Select->getCondition();
 3569   return SimplifyTerminatorOnSelect(IBI, SI->getCondition(), TrueBB, FalseBB, 0,
 4647     Constant *A = LookupConstant(Select->getCondition(), ConstantPool);
lib/Transforms/Utils/SimplifyLibCalls.cpp
  721       return B.CreateSelect(SI->getCondition(),
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  494       return SelectA->getCondition() == SelectB->getCondition() &&
  494       return SelectA->getCondition() == SelectB->getCondition() &&
lib/Transforms/Vectorize/LoopVectorize.cpp
 3336         NewI = B.CreateSelect(SI->getCondition(),
 6228     const SCEV *CondSCEV = SE->getSCEV(SI->getCondition());
 6230     Type *CondTy = SI->getCondition()->getType();
lib/Transforms/Vectorize/SLPVectorizer.cpp
 5888         auto *Cmp = cast<Instruction>(cast<SelectInst>(I)->getCondition());
 5909                 cast<SelectInst>(I)->getCondition()->hasOneUse());
 5946         ReductionOps[0].emplace_back(cast<SelectInst>(I)->getCondition());
 6038           propagateIRFlags(SI->getCondition(), ReductionOps[0]);
 6062           propagateIRFlags(SI->getCondition(),
 6063                            cast<SelectInst>(I)->getCondition());
 6154             cast<Instruction>(Select->getCondition())->hasNoNaNs());
 6163             cast<Instruction>(Select->getCondition())->hasNoNaNs());
 6182         Value *Cond = Select->getCondition();