Antonio Frighetto 64db7f6c49
[SimpleLoopUnswitch] Adjust cost multiplier accounting for parent loop size
When estimating the cost to avoid exponential unswitches of non-trivial
invariant conditions, also consider the parent loop basic blocks size,
ensuring this does not grow unexpectedly.

Fixes: https://github.com/llvm/llvm-project/issues/138509.
2025-09-05 08:53:38 +02:00
..