| | | | --- | --- | | Bugzilla Link | [37859](https://llvm.org/bz37859) | | Version | trunk | | OS | All | | Attachments | [Testcase](https://user-images.githubusercontent.com/138339/143757659-0f769783-9610-4747-a5e1-29a635d83603.gz), [More reduced testcase](https://user-images.githubusercontent.com/138339/143757660-342631c7-fb4d-4913-a548-4046e7a6f68d.gz) | | CC | @hfinkel | ## Extended Description In the attached testcase, there are two nested loops with constant trip counts. The exit isn't fully eliminated. opt -loop-unroll -gvn shows a strange infinite loop is introduced instead.