@@ -1364,7 +1364,7 @@ void SCCPInstVisitor::visitInsertValueInst(InsertValueInst &IVI) {
1364
1364
1365
1365
// resolvedUndefsIn might mark I as overdefined. Bail out, even if we would
1366
1366
// discover a concrete value later.
1367
- if (SCCPSolver::isOverdefined ( ValueState[&IVI]))
1367
+ if (ValueState[&IVI]. isOverdefined ( ))
1368
1368
return (void )markOverdefined (&IVI);
1369
1369
1370
1370
// If this has more than one index, we can't handle it, drive all results to
@@ -1436,7 +1436,7 @@ void SCCPInstVisitor::visitUnaryOperator(Instruction &I) {
1436
1436
ValueLatticeElement &IV = ValueState[&I];
1437
1437
// resolvedUndefsIn might mark I as overdefined. Bail out, even if we would
1438
1438
// discover a concrete value later.
1439
- if (SCCPSolver:: isOverdefined (IV ))
1439
+ if (IV. isOverdefined ())
1440
1440
return (void )markOverdefined (&I);
1441
1441
1442
1442
// If something is unknown/undef, wait for it to resolve.
@@ -1461,7 +1461,7 @@ void SCCPInstVisitor::visitFreezeInst(FreezeInst &I) {
1461
1461
ValueLatticeElement &IV = ValueState[&I];
1462
1462
// resolvedUndefsIn might mark I as overdefined. Bail out, even if we would
1463
1463
// discover a concrete value later.
1464
- if (SCCPSolver:: isOverdefined (IV ))
1464
+ if (IV. isOverdefined ())
1465
1465
return (void )markOverdefined (&I);
1466
1466
1467
1467
// If something is unknown/undef, wait for it to resolve.
@@ -1541,7 +1541,7 @@ void SCCPInstVisitor::visitBinaryOperator(Instruction &I) {
1541
1541
void SCCPInstVisitor::visitCmpInst (CmpInst &I) {
1542
1542
// Do not cache this lookup, getValueState calls later in the function might
1543
1543
// invalidate the reference.
1544
- if (SCCPSolver::isOverdefined ( ValueState[&I]))
1544
+ if (ValueState[&I]. isOverdefined ( ))
1545
1545
return (void )markOverdefined (&I);
1546
1546
1547
1547
Value *Op1 = I.getOperand (0 );
@@ -1571,7 +1571,7 @@ void SCCPInstVisitor::visitCmpInst(CmpInst &I) {
1571
1571
// Handle getelementptr instructions. If all operands are constants then we
1572
1572
// can turn this into a getelementptr ConstantExpr.
1573
1573
void SCCPInstVisitor::visitGetElementPtrInst (GetElementPtrInst &I) {
1574
- if (SCCPSolver::isOverdefined ( ValueState[&I]))
1574
+ if (ValueState[&I]. isOverdefined ( ))
1575
1575
return (void )markOverdefined (&I);
1576
1576
1577
1577
SmallVector<Constant *, 8 > Operands;
@@ -1582,9 +1582,6 @@ void SCCPInstVisitor::visitGetElementPtrInst(GetElementPtrInst &I) {
1582
1582
if (State.isUnknownOrUndef ())
1583
1583
return ; // Operands are not resolved yet.
1584
1584
1585
- if (SCCPSolver::isOverdefined (State))
1586
- return (void )markOverdefined (&I);
1587
-
1588
1585
if (Constant *C = getConstant (State, I.getOperand (i)->getType ())) {
1589
1586
Operands.push_back (C);
1590
1587
continue ;
0 commit comments