[PATCH] D125522: [llvm][fix-irreducible] FixIrreducible unnecessarily destroys child loops causing assertion error

Sameer Sahasrabuddhe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 17 22:23:43 PDT 2022


sameerds accepted this revision.
sameerds added a comment.
This revision is now accepted and ready to land.

I think the change description is missing the point and needs to be rephrased. The modified function was incorrectly (not unnecessarily) ignoring grandchild loops, and this change fixes the bug. In particular, this fixes the handling of the loop { inner, body }. The TODO in the same function is talking about the b1 self loop, which may be "unnecessarily" lost, but that is a different issue.

A possible wording would be: "ensure that loop subtree under child is correctly reconnected to new loop"


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125522



More information about the llvm-commits mailing list