[llvm] [IRCE] Relax profitability check (PR #104659)

Jan Ječmen via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 4 07:59:17 PST 2024


================
@@ -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


More information about the llvm-commits mailing list