2 Commits

Author SHA1 Message Date
Max Kazantsev
c7ea20c8ee [SimpleLoopUnswitch] Ignore inner loops when injecting invariant conditions. PR60736
The transform and all related updates don't expect the situation when candidate
is from an inner loop. I think we *might* still do something in this case, but
the current implementation doesn't expect this and does incorrect loop info
updates in this situation.

Details: https://github.com/llvm/llvm-project/issues/60736
2023-02-14 19:35:34 +07:00
Max Kazantsev
ebc21c7a25 [Test] Add test for PR60736
Details at https://github.com/llvm/llvm-project/issues/60736
2023-02-14 18:23:12 +07:00