Lines Matching refs:CE0
914 if (ConstantExpr *CE0 = dyn_cast<ConstantExpr>(Ops0)) { in ConstantFoldCompareInstOperands() local
916 Type *IntPtrTy = TD->getIntPtrType(CE0->getContext()); in ConstantFoldCompareInstOperands()
917 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
920 Constant *C = ConstantExpr::getIntegerCast(CE0->getOperand(0), in ConstantFoldCompareInstOperands()
928 if (CE0->getOpcode() == Instruction::PtrToInt && in ConstantFoldCompareInstOperands()
929 CE0->getType() == IntPtrTy) { in ConstantFoldCompareInstOperands()
930 Constant *C = CE0->getOperand(0); in ConstantFoldCompareInstOperands()
937 if (TD && CE0->getOpcode() == CE1->getOpcode()) { in ConstantFoldCompareInstOperands()
938 Type *IntPtrTy = TD->getIntPtrType(CE0->getContext()); in ConstantFoldCompareInstOperands()
940 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
943 Constant *C0 = ConstantExpr::getIntegerCast(CE0->getOperand(0), in ConstantFoldCompareInstOperands()
952 if ((CE0->getOpcode() == Instruction::PtrToInt && in ConstantFoldCompareInstOperands()
953 CE0->getType() == IntPtrTy && in ConstantFoldCompareInstOperands()
954 CE0->getOperand(0)->getType() == CE1->getOperand(0)->getType())) in ConstantFoldCompareInstOperands()
955 return ConstantFoldCompareInstOperands(Predicate, CE0->getOperand(0), in ConstantFoldCompareInstOperands()
963 CE0->getOpcode() == Instruction::Or && Ops1->isNullValue()) { in ConstantFoldCompareInstOperands()
965 ConstantFoldCompareInstOperands(Predicate, CE0->getOperand(0), Ops1,TD); in ConstantFoldCompareInstOperands()
967 ConstantFoldCompareInstOperands(Predicate, CE0->getOperand(1), Ops1,TD); in ConstantFoldCompareInstOperands()