File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -3258,18 +3258,6 @@ Instruction *InstCombinerImpl::foldICmpBitCast(ICmpInst &Cmp) {
3258
3258
}
3259
3259
}
3260
3260
3261
- // Test to see if the operands of the icmp are casted versions of other
3262
- // values. If the ptr->ptr cast can be stripped off both arguments, do so.
3263
- if (DstType->isPointerTy () && (isa<Constant>(Op1) || isa<BitCastInst>(Op1))) {
3264
- // If operand #1 is a bitcast instruction, it must also be a ptr->ptr cast
3265
- // so eliminate it as well.
3266
- if (auto *BC2 = dyn_cast<BitCastInst>(Op1))
3267
- Op1 = BC2->getOperand (0 );
3268
-
3269
- Op1 = Builder.CreateBitCast (Op1, SrcType);
3270
- return new ICmpInst (Pred, BCSrcOp, Op1);
3271
- }
3272
-
3273
3261
const APInt *C;
3274
3262
if (!match (Cmp.getOperand (1 ), m_APInt (C)) || !DstType->isIntegerTy () ||
3275
3263
!SrcType->isIntOrIntVectorTy ())
You can’t perform that action at this time.
0 commit comments