llvm-project/llvm/test/Transforms/FixIrreducible
Sameer Sahasrabuddhe 5a7a6382bc FixIrreducible: don't crash when moving a child loop
Summary:
When an irreducible SCC is converted into a new natural loop, existing
loops included in that SCC now become children of the new loop. The
logic that moves these loops from the parent loop to the new loop
invoked undefined behaviour when it modified the container that it was
iterating over. Fixed this by first extracting all the loops that are
to be removed from the parent.

Fixes bug 45623.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D78544
2020-04-22 07:47:30 +05:30
..
basic.ll Introduce fix-irreducible pass 2020-04-15 15:05:51 +05:30
bug45623.ll FixIrreducible: don't crash when moving a child loop 2020-04-22 07:47:30 +05:30
nested.ll Introduce fix-irreducible pass 2020-04-15 15:05:51 +05:30
switch.ll Introduce fix-irreducible pass 2020-04-15 15:05:51 +05:30