@@ -7019,11 +7019,6 @@ ScalarEvolution::computeBackedgeTakenCount(const Loop *L,
70197019 for (unsigned i = 0 , e = ExitingBlocks.size (); i != e; ++i) {
70207020 BasicBlock *ExitBB = ExitingBlocks[i];
70217021 ExitLimit EL = computeExitLimit (L, ExitBB, AllowPredicates);
7022- llvm::errs () << " exit limit for " << ExitBB->getName () << " is " ;
7023- if (EL.ExactNotTaken ) llvm::errs () << *EL.ExactNotTaken ;
7024- llvm::errs () << " max" ;
7025- if (EL.MaxNotTaken ) llvm::errs () << *EL.MaxNotTaken ;
7026- llvm::errs () << " \n " ;
70277022
70287023 assert ((AllowPredicates || EL.Predicates .empty ()) &&
70297024 " Predicated exit limit when predicates are not allowed!" );
@@ -7298,7 +7293,6 @@ ScalarEvolution::computeExitLimitFromICmp(const Loop *L,
72987293 bool ExitIfTrue,
72997294 bool ControlsExit,
73007295 bool AllowPredicates) {
7301- llvm::errs () << " exit limit form icmp\n " ;
73027296 // If the condition was exit on true, convert the condition to exit on false
73037297 ICmpInst::Predicate Pred;
73047298 if (!ExitIfTrue)
@@ -7350,22 +7344,19 @@ ScalarEvolution::computeExitLimitFromICmp(const Loop *L,
73507344 switch (Pred) {
73517345 case ICmpInst::ICMP_NE: { // while (X != Y)
73527346 // Convert to: while (X-Y != 0)
7353- llvm::errs () << " considering ne than\n " ;
73547347 ExitLimit EL = howFarToZero (getMinusSCEV (LHS, RHS), L, ControlsExit,
73557348 AllowPredicates);
73567349 if (EL.hasAnyInfo ()) return EL;
73577350 break ;
73587351 }
73597352 case ICmpInst::ICMP_EQ: { // while (X == Y)
7360- llvm::errs () << " considering eq than\n " ;
73617353 // Convert to: while (X-Y == 0)
73627354 ExitLimit EL = howFarToNonZero (getMinusSCEV (LHS, RHS), L);
73637355 if (EL.hasAnyInfo ()) return EL;
73647356 break ;
73657357 }
73667358 case ICmpInst::ICMP_SLT:
73677359 case ICmpInst::ICMP_ULT: { // while (X < Y)
7368- llvm::errs () << " considering greater less than\n " ;
73697360 bool IsSigned = Pred == ICmpInst::ICMP_SLT;
73707361 ExitLimit EL = howManyLessThans (LHS, RHS, L, IsSigned, ControlsExit,
73717362 AllowPredicates);
@@ -7374,24 +7365,14 @@ ScalarEvolution::computeExitLimitFromICmp(const Loop *L,
73747365 }
73757366 case ICmpInst::ICMP_SGT:
73767367 case ICmpInst::ICMP_UGT: { // while (X > Y)
7377- llvm::errs () << " considering greater than\n " ;
73787368 bool IsSigned = Pred == ICmpInst::ICMP_SGT;
73797369 ExitLimit EL =
73807370 howManyGreaterThans (LHS, RHS, L, IsSigned, ControlsExit,
73817371 AllowPredicates);
73827372 if (EL.hasAnyInfo ()) return EL;
73837373 break ;
73847374 }
7385- case ICmpInst::ICMP_SGE:
7386- case ICmpInst::ICMP_UGE:
7387- llvm::errs () << " considering greater equal than\n " ;
7388- break ;
7389- case ICmpInst::ICMP_SLE:
7390- case ICmpInst::ICMP_ULE:
7391- llvm::errs () << " considering less equal than\n " ;
7392- break ;
73937375 default :
7394- llvm::errs () << " considering other than\n " ;
73957376 break ;
73967377 }
73977378
0 commit comments