[llvm] [SimplifyCFG] Increase iterative simplification convergence limit. (PR #178406)

Marcos Maronas via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 30 06:45:16 PST 2026


maarquitos14 wrote:

> No strong objection to raising this limit, though I do think you should check what is actually going on in your test case (which transform is being repeatedly triggered?) Given that the limit is rather arbitrary, having a cl::opt for it sounds fine as well.

I think there is nothing fundamentally wrong with the test case, but it does have a ton of branches, so `simplifyCondBranch` is triggered a gazillion times. I will merge this one as is, if you think a cl::opt is useful, I can add it in a subsequent PR. That said, given the amount of time --more than 4 years-- this has been here without causing any trouble --or at least no complaints about it, I think it wouldn't have a lot of interest. Let me know what you think @nikic.

https://github.com/llvm/llvm-project/pull/178406


More information about the llvm-commits mailing list