================ @@ -989,17 +999,15 @@ bool InductiveRangeCheckElimination::run( return false; } - if (!isProfitableToTransform(*L)) - return false; ---------------- JanJecmen wrote: That is a good point, thanks. I added this early exit back https://github.com/llvm/llvm-project/pull/104659