@@ -78,12 +78,6 @@ static cl::opt<bool> BaleSelect("bale-select", cl::init(true), cl::Hidden,
78
78
static cl::opt<bool > BaleFNeg (" bale-fneg" , cl::init(true ), cl::Hidden,
79
79
cl::desc(" Bale fneg" ));
80
80
81
- static cl::opt<bool > BaleIntToPtr (" bale-inttoptr" , cl::init(true ), cl::Hidden,
82
- cl::desc(" Bale inttoptr" ));
83
-
84
- static cl::opt<bool > BalePtrToInt (" bale-ptrtoint" , cl::init(true ), cl::Hidden,
85
- cl::desc(" Bale ptrtoint" ));
86
-
87
81
// ----------------------------------------------------------------------
88
82
// Administrivia for GenXFuncBaling pass
89
83
//
@@ -373,16 +367,6 @@ static int checkModifier(Instruction *Inst)
373
367
return BaleInfo::SEXT;
374
368
}
375
369
break ;
376
- case Instruction::IntToPtr: {
377
- LLVM_DEBUG (llvm::dbgs ()
378
- << " Instruction " << *Inst << " detected as INTTOPTR\n " );
379
- return BaleInfo::INTTOPTR;
380
- } break ;
381
- case Instruction::PtrToInt: {
382
- LLVM_DEBUG (llvm::dbgs ()
383
- << " Instruction " << *Inst << " detected as PTRTOINT\n " );
384
- return BaleInfo::PTRTOINT;
385
- } break ;
386
370
default :
387
371
switch (GenXIntrinsic::getGenXIntrinsicID (Inst)) {
388
372
case GenXIntrinsic::genx_absi:
@@ -449,12 +433,6 @@ bool GenXBaling::operandCanBeBaled(
449
433
break ;
450
434
}
451
435
}
452
-
453
- // Always bale in IntToPtr and PtrToInt operands
454
- if (Opnd->getOpcode () == Instruction::IntToPtr ||
455
- Opnd->getOpcode () == Instruction::PtrToInt)
456
- return true ;
457
-
458
436
if (GenXIntrinsic::isRdRegion (Opnd)) {
459
437
// The operand is a rdregion. Check any restrictions.
460
438
// (Note we call isRegionOKForIntrinsic even when Inst is not an
@@ -1338,10 +1316,6 @@ static bool acceptableMainInst(Instruction *Inst) {
1338
1316
if (Inst->getOpcode () == Instruction::FNeg)
1339
1317
return BaleFNeg;
1340
1318
#endif
1341
- if (Inst->getOpcode () == Instruction::IntToPtr)
1342
- return BaleIntToPtr;
1343
- if (Inst->getOpcode () == Instruction::PtrToInt)
1344
- return BalePtrToInt;
1345
1319
return false ;
1346
1320
}
1347
1321
@@ -2699,8 +2673,6 @@ const char *BaleInfo::getTypeString() const
2699
2673
case BaleInfo::GSTORE: return " g_store" ;
2700
2674
case BaleInfo::SHUFFLEPRED: return " shufflepred" ;
2701
2675
case BaleInfo::FADDR: return " faddr" ;
2702
- case BaleInfo::INTTOPTR: return " inttoptr" ;
2703
- case BaleInfo::PTRTOINT: return " ptrtoint" ;
2704
2676
default : return " ???" ;
2705
2677
}
2706
2678
}
0 commit comments