[PATCH] D108108: [LoopPeel] Allow peeling with multiple unreachable-terminated exit blocks.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 16 03:56:09 PDT 2021


fhahn added a comment.

In D108108#2946286 <https://reviews.llvm.org/D108108#2946286>, @lebedev.ri wrote:

> Can you please also at least add a test with
>
>   unreachable.exit.foo: ; preds = <...>
>     call void @foo()
>     br label %unreachable.exit.end
>   
>   unreachable.exit.bar: ; preds = <...>
>     call void @bar()
>     br label %unreachable.exit.end
>   
>   unreachable.exit.end:
>     call void @baz()
>     unreachable

Thanks, should be added in 38c3cebd7d5a <https://reviews.llvm.org/rG38c3cebd7d5aab0a27fb78d10bf3c783d760b186>. Note that the current version doesn't support that case at the moment, as this would probably require a bit more complex checking.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108108/new/

https://reviews.llvm.org/D108108



More information about the llvm-commits mailing list