Lines Matching refs:CondIdx
139 unsigned CondIdx; member in __anon135b54a50111::SelectOptimizeImpl::SelectLike
142 SelectLike(Instruction *I, bool Inverted = false, unsigned CondIdx = 0) in SelectLike() argument
143 : I(I), Inverted(Inverted), CondIdx(CondIdx) {} in SelectLike()
150 unsigned getConditionOpIndex() { return CondIdx; }; in getConditionOpIndex()
181 return BO->getOperand(1 - CondIdx); in getFalseValue()
210 if (auto *OpI = dyn_cast<Instruction>(I->getOperand(1 - CondIdx))) { in getOpCostOnBranch()
498 auto CondIdx = SI.getConditionOpIndex(); in getTrueOrFalseValue() local
499 auto *AuxI = cast<Instruction>(CBO->getOperand(CondIdx)); in getTrueOrFalseValue()
501 CBO->setOperand(CondIdx, ConstantInt::get(CBO->getType(), 1)); in getTrueOrFalseValue()
505 CBO->setOperand(CondIdx, ConstantInt::getAllOnesValue(CBO->getType())); in getTrueOrFalseValue()
508 unsigned OtherIdx = 1 - CondIdx; in getTrueOrFalseValue()
919 auto [CurrCond, IsAux, IsRev, CondIdx] = It->second; in collectSelectGroups()
926 SIGroup.Selects.emplace_back(NI, IsRev, CondIdx); in collectSelectGroups()