File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -1196,13 +1196,6 @@ class ConstantExpr : public Constant {
1196
1196
// / and the getIndices() method may be used.
1197
1197
bool hasIndices () const ;
1198
1198
1199
- // / Return true if this is a getelementptr expression and all
1200
- // / the index operands are compile-time known integers within the
1201
- // / corresponding notional static array extents. Note that this is
1202
- // / not equivalant to, a subset of, or a superset of the "inbounds"
1203
- // / property.
1204
- bool isGEPWithNoNotionalOverIndexing () const ;
1205
-
1206
1199
// / Select constant expr
1207
1200
// /
1208
1201
// / \param OnlyIfReducedTy see \a getWithOperands() docs.
Original file line number Diff line number Diff line change @@ -1495,28 +1495,6 @@ bool ConstantExpr::isCompare() const {
1495
1495
return getOpcode () == Instruction::ICmp || getOpcode () == Instruction::FCmp;
1496
1496
}
1497
1497
1498
- bool ConstantExpr::isGEPWithNoNotionalOverIndexing () const {
1499
- if (getOpcode () != Instruction::GetElementPtr) return false ;
1500
-
1501
- gep_type_iterator GEPI = gep_type_begin (this ), E = gep_type_end (this );
1502
- User::const_op_iterator OI = std::next (this ->op_begin ());
1503
-
1504
- // The remaining indices may be compile-time known integers within the bounds
1505
- // of the corresponding notional static array types.
1506
- for (; GEPI != E; ++GEPI, ++OI) {
1507
- if (isa<UndefValue>(*OI))
1508
- continue ;
1509
- auto *CI = dyn_cast<ConstantInt>(*OI);
1510
- if (!CI || (GEPI.isBoundedSequential () &&
1511
- (CI->getValue ().getActiveBits () > 64 ||
1512
- CI->getZExtValue () >= GEPI.getSequentialNumElements ())))
1513
- return false ;
1514
- }
1515
-
1516
- // All the indices checked out.
1517
- return true ;
1518
- }
1519
-
1520
1498
bool ConstantExpr::hasIndices () const {
1521
1499
return getOpcode () == Instruction::ExtractValue ||
1522
1500
getOpcode () == Instruction::InsertValue;
You can’t perform that action at this time.
0 commit comments