@@ -1314,9 +1314,7 @@ static void generateReproducer(CmpInst *Cond, Module *M,
1314
1314
1315
1315
static std::optional<bool > checkCondition (CmpInst::Predicate Pred, Value *A,
1316
1316
Value *B, Instruction *CheckInst,
1317
- ConstraintInfo &Info, unsigned NumIn,
1318
- unsigned NumOut,
1319
- Instruction *ContextInst) {
1317
+ ConstraintInfo &Info) {
1320
1318
LLVM_DEBUG (dbgs () << " Checking " << *CheckInst << " \n " );
1321
1319
1322
1320
auto R = Info.getConstraintForSolving (Pred, A, B);
@@ -1385,9 +1383,9 @@ static bool checkAndReplaceCondition(
1385
1383
return true ;
1386
1384
};
1387
1385
1388
- if (auto ImpliedCondition = checkCondition (
1389
- Cmp->getPredicate (), Cmp->getOperand (0 ), Cmp-> getOperand ( 1 ), Cmp ,
1390
- Info, NumIn, NumOut, ContextInst ))
1386
+ if (auto ImpliedCondition =
1387
+ checkCondition ( Cmp->getPredicate (), Cmp->getOperand (0 ),
1388
+ Cmp-> getOperand ( 1 ), Cmp, Info ))
1391
1389
return ReplaceCmpWithConstant (Cmp, *ImpliedCondition);
1392
1390
return false ;
1393
1391
}
@@ -1446,8 +1444,7 @@ static bool checkOrAndOpImpliedByOther(
1446
1444
// Check if the second condition can be simplified now.
1447
1445
if (auto ImpliedCondition =
1448
1446
checkCondition (CmpToCheck->getPredicate (), CmpToCheck->getOperand (0 ),
1449
- CmpToCheck->getOperand (1 ), CmpToCheck, Info, CB.NumIn ,
1450
- CB.NumOut , CB.getContextInst ())) {
1447
+ CmpToCheck->getOperand (1 ), CmpToCheck, Info)) {
1451
1448
if (IsOr && isa<SelectInst>(JoinOp)) {
1452
1449
JoinOp->setOperand (
1453
1450
OtherOpIdx == 0 ? 2 : 0 ,
0 commit comments