• Home
  • Raw
  • Download

Lines Matching refs:TI

148 Instruction *InstCombiner::FoldSelectOpOp(SelectInst &SI, Instruction *TI,  in FoldSelectOpOp()  argument
150 if (TI->getNumOperands() == 1) { in FoldSelectOpOp()
153 if (TI->isCast()) { in FoldSelectOpOp()
155 if (TI->getOperand(0)->getType() != FIOpndTy) in FoldSelectOpOp()
168 Value *NewSI = Builder->CreateSelect(SI.getCondition(), TI->getOperand(0), in FoldSelectOpOp()
170 return CastInst::Create(Instruction::CastOps(TI->getOpcode()), NewSI, in FoldSelectOpOp()
171 TI->getType()); in FoldSelectOpOp()
175 if (!isa<BinaryOperator>(TI)) in FoldSelectOpOp()
181 if (TI->getOperand(0) == FI->getOperand(0)) { in FoldSelectOpOp()
182 MatchOp = TI->getOperand(0); in FoldSelectOpOp()
183 OtherOpT = TI->getOperand(1); in FoldSelectOpOp()
186 } else if (TI->getOperand(1) == FI->getOperand(1)) { in FoldSelectOpOp()
187 MatchOp = TI->getOperand(1); in FoldSelectOpOp()
188 OtherOpT = TI->getOperand(0); in FoldSelectOpOp()
191 } else if (!TI->isCommutative()) { in FoldSelectOpOp()
193 } else if (TI->getOperand(0) == FI->getOperand(1)) { in FoldSelectOpOp()
194 MatchOp = TI->getOperand(0); in FoldSelectOpOp()
195 OtherOpT = TI->getOperand(1); in FoldSelectOpOp()
198 } else if (TI->getOperand(1) == FI->getOperand(0)) { in FoldSelectOpOp()
199 MatchOp = TI->getOperand(1); in FoldSelectOpOp()
200 OtherOpT = TI->getOperand(0); in FoldSelectOpOp()
211 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(TI)) { in FoldSelectOpOp()
957 if (Instruction *TI = dyn_cast<Instruction>(TrueVal)) in visitSelectInst() local
959 if (TI->hasOneUse() && FI->hasOneUse()) { in visitSelectInst()
963 if (TI->getOpcode() == FI->getOpcode()) in visitSelectInst()
964 if (Instruction *IV = FoldSelectOpOp(SI, TI, FI)) in visitSelectInst()
969 if ((TI->getOpcode() == Instruction::Sub && in visitSelectInst()
971 (TI->getOpcode() == Instruction::FSub && in visitSelectInst()
973 AddOp = FI; SubOp = TI; in visitSelectInst()
975 TI->getOpcode() == Instruction::Add) || in visitSelectInst()
977 TI->getOpcode() == Instruction::FAdd)) { in visitSelectInst()
978 AddOp = TI; SubOp = FI; in visitSelectInst()
1006 if (AddOp != TI) in visitSelectInst()