It fixes a bug that doesn't update Phi inputs of the only live successor that
is in the list of block's successors more than once.
Thanks @uabelho for finding this.
Paths
| Differential D54849
[LoopSimplifyCFG] Fix corner case with duplicating successors ClosedPublic Authored by mkazantsev on Nov 23 2018, 3:09 AM.
Details Summary It fixes a bug that doesn't update Phi inputs of the only live successor that Thanks @uabelho for finding this.
Diff Detail Event TimelineComment Actions I've verifed that it solves the problem I reported. I've done a little bit of testing with the patch and didn't see anything obviously broken yet at least. As for the details of the patch, I'm sure someone else knows better if this is the best way to solve the issue but it looks fine to me. Thanks! This revision is now accepted and ready to land.Nov 26 2018, 1:45 PM Closed by commit rL347640: [LoopSimplifyCFG] Fix corner case with duplicating successors (authored by mkazantsev). · Explain WhyNov 26 2018, 10:21 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 175102 lib/Transforms/Scalar/LoopSimplifyCFG.cpp
test/Transforms/LoopSimplifyCFG/phi_with_duplicating_inputs.ll
|