Lines Matching refs:getOperand
32 LHS = ICI->getOperand(0); in MatchSelectPattern()
33 RHS = ICI->getOperand(1); in MatchSelectPattern()
36 if (SI->getTrueValue() == ICI->getOperand(0) && in MatchSelectPattern()
37 SI->getFalseValue() == ICI->getOperand(1)) { in MatchSelectPattern()
52 if (SI->getTrueValue() == ICI->getOperand(1) && in MatchSelectPattern()
53 SI->getFalseValue() == ICI->getOperand(0)) { in MatchSelectPattern()
130 if (TI->getOperand(0)->getType() != FI->getOperand(0)->getType()) in FoldSelectOpOp()
136 FI->getOperand(0)->getType()->getVectorNumElements()) in FoldSelectOpOp()
143 Value *NewSI = Builder->CreateSelect(SI.getCondition(), TI->getOperand(0), in FoldSelectOpOp()
144 FI->getOperand(0), SI.getName()+".v"); in FoldSelectOpOp()
156 if (TI->getOperand(0) == FI->getOperand(0)) { in FoldSelectOpOp()
157 MatchOp = TI->getOperand(0); in FoldSelectOpOp()
158 OtherOpT = TI->getOperand(1); in FoldSelectOpOp()
159 OtherOpF = FI->getOperand(1); in FoldSelectOpOp()
161 } else if (TI->getOperand(1) == FI->getOperand(1)) { in FoldSelectOpOp()
162 MatchOp = TI->getOperand(1); in FoldSelectOpOp()
163 OtherOpT = TI->getOperand(0); in FoldSelectOpOp()
164 OtherOpF = FI->getOperand(0); in FoldSelectOpOp()
168 } else if (TI->getOperand(0) == FI->getOperand(1)) { in FoldSelectOpOp()
169 MatchOp = TI->getOperand(0); in FoldSelectOpOp()
170 OtherOpT = TI->getOperand(1); in FoldSelectOpOp()
171 OtherOpF = FI->getOperand(0); in FoldSelectOpOp()
173 } else if (TI->getOperand(1) == FI->getOperand(0)) { in FoldSelectOpOp()
174 MatchOp = TI->getOperand(1); in FoldSelectOpOp()
175 OtherOpT = TI->getOperand(0); in FoldSelectOpOp()
176 OtherOpF = FI->getOperand(1); in FoldSelectOpOp()
219 if ((SFO & 1) && FalseVal == TVI->getOperand(0)) { in FoldSelectIntoOp()
221 } else if ((SFO & 2) && FalseVal == TVI->getOperand(1)) { in FoldSelectIntoOp()
227 Value *OOp = TVI->getOperand(2-OpToFold); in FoldSelectIntoOp()
254 if ((SFO & 1) && TrueVal == FVI->getOperand(0)) { in FoldSelectIntoOp()
256 } else if ((SFO & 2) && TrueVal == FVI->getOperand(1)) { in FoldSelectIntoOp()
262 Value *OOp = FVI->getOperand(2-OpToFold); in FoldSelectIntoOp()
302 if (B->getOperand(0) == Op) in SimplifyWithOpReplaced()
303 return SimplifyBinOp(B->getOpcode(), RepOp, B->getOperand(1), TD, TLI); in SimplifyWithOpReplaced()
304 if (B->getOperand(1) == Op) in SimplifyWithOpReplaced()
305 return SimplifyBinOp(B->getOpcode(), B->getOperand(0), RepOp, TD, TLI); in SimplifyWithOpReplaced()
310 if (C->getOperand(0) == Op) in SimplifyWithOpReplaced()
311 return SimplifyCmpInst(C->getPredicate(), RepOp, C->getOperand(1), TD, in SimplifyWithOpReplaced()
313 if (C->getOperand(1) == Op) in SimplifyWithOpReplaced()
314 return SimplifyCmpInst(C->getPredicate(), C->getOperand(0), RepOp, TD, in SimplifyWithOpReplaced()
326 if (I->getOperand(i) == Op) in SimplifyWithOpReplaced()
328 else if (Constant *COp = dyn_cast<Constant>(I->getOperand(i))) in SimplifyWithOpReplaced()
359 Value *CmpLHS = ICI->getOperand(0); in visitSelectInstWithICmp()
360 Value *CmpRHS = ICI->getOperand(1); in visitSelectInstWithICmp()
602 if (!match(IC->getOperand(1), m_Zero())) in foldSelectICmpAnd()
606 Value *LHS = IC->getOperand(0); in foldSelectICmpAnd()
732 if (FCI->getOperand(0) == TrueVal && FCI->getOperand(1) == FalseVal) { in visitSelectInst()
759 } else if (FCI->getOperand(0) == FalseVal && FCI->getOperand(1) == TrueVal){ in visitSelectInst()
820 if (SubOp->getOperand(0) == AddOp->getOperand(0)) { in visitSelectInst()
821 OtherAddOp = AddOp->getOperand(1); in visitSelectInst()
822 } else if (SubOp->getOperand(0) == AddOp->getOperand(1)) { in visitSelectInst()
823 OtherAddOp = AddOp->getOperand(0); in visitSelectInst()
831 NegVal = Builder->CreateFNeg(SubOp->getOperand(1)); in visitSelectInst()
833 NegVal = Builder->CreateNeg(SubOp->getOperand(1)); in visitSelectInst()
845 return BinaryOperator::CreateFAdd(SubOp->getOperand(0), NewSel); in visitSelectInst()
847 return BinaryOperator::CreateAdd(SubOp->getOperand(0), NewSel); in visitSelectInst()
925 Constant *Elem = cast<Constant>(CV->getOperand(i)); in visitSelectInst()