Lines Matching refs:getOpcode
140 switch (Op->getOpcode()) {
353 switch (LHSI->getOpcode()) {
1033 switch (Op0I->getOpcode()) {
1045 return BinaryOperator::Create(Op0I->getOpcode(), Op0LHS, NewRHS);
1052 return BinaryOperator::Create(Op0I->getOpcode(), NewLHS, Op0RHS);
1206 if (Op0C->getOpcode() == Op1C->getOpcode() && // same cast kind ?
1212 if (ShouldOptimizeCast(Op0C->getOpcode(), Op0COp, I.getType()) &&
1213 ShouldOptimizeCast(Op1C->getOpcode(), Op1COp, I.getType())) {
1215 return CastInst::Create(Op0C->getOpcode(), NewOp, I.getType());
1223 return CastInst::Create(Op0C->getOpcode(), Res, I.getType());
1230 return CastInst::Create(Op0C->getOpcode(), Res, I.getType());
1237 if (SI0->isShift() && SI0->getOpcode() == SI1->getOpcode() &&
1243 return BinaryOperator::Create(SI1->getOpcode(), NewOp,
1306 if (I->getOpcode() == Instruction::Or) {
1323 if (I->getOpcode() == Instruction::Shl) {
1343 if (I->getOpcode() == Instruction::And &&
1946 if (SI0->isShift() && SI0->getOpcode() == SI1->getOpcode() &&
1951 return BinaryOperator::Create(SI1->getOpcode(), NewOp,
1998 Op1->hasOneUse() && (B->getOpcode() == Instruction::Or ||
1999 B->getOpcode() == Instruction::Xor)) {
2023 if (Op1C && Op0C->getOpcode() == Op1C->getOpcode()) {// same cast kind ?
2032 ShouldOptimizeCast(Op0C->getOpcode(), Op0COp, I.getType()) &&
2033 ShouldOptimizeCast(Op1C->getOpcode(), Op1COp, I.getType())) {
2035 return CastInst::Create(Op0C->getOpcode(), NewOp, I.getType());
2043 return CastInst::Create(Op0C->getOpcode(), Res, I.getType());
2050 return CastInst::Create(Op0C->getOpcode(), Res, I.getType());
2110 if (Op0I->getOpcode() == Instruction::And ||
2111 Op0I->getOpcode() == Instruction::Or) {
2120 if (Op0I->getOpcode() == Instruction::And)
2133 if (Op0I->getOpcode() == Instruction::And)
2138 } else if (Op0I->getOpcode() == Instruction::AShr) {
2151 return CmpInst::Create(CI->getOpcode(),
2159 Instruction::CastOps Opcode = Op0C->getOpcode();
2173 if (Op0I->getOpcode() == Instruction::Sub && RHS->isAllOnesValue())
2182 if (Op0I->getOpcode() == Instruction::Add) {
2197 } else if (Op0I->getOpcode() == Instruction::Or) {
2211 } else if (Op0I->getOpcode() == Instruction::LShr) {
2218 E1->getOpcode() == Instruction::Xor &&
2292 Op0I->getOpcode() == Op1I->getOpcode() &&
2298 return BinaryOperator::Create(Op1I->getOpcode(), NewOp,
2339 if (Op0C->getOpcode() == Op1C->getOpcode()) { // same cast kind?
2343 ShouldOptimizeCast(Op0C->getOpcode(), Op0C->getOperand(0),
2345 ShouldOptimizeCast(Op1C->getOpcode(), Op1C->getOperand(0),
2349 return CastInst::Create(Op0C->getOpcode(), NewOp, I.getType());