llvm-project
237b8de2 - [IfConversion] Fix bug related to !HasFallThrough (#145471)

Commit
199 days ago
[IfConversion] Fix bug related to !HasFallThrough (#145471) We can not trust that !HasFallThrough implies that there is not fallthrough exit in cases when analyzeBranch failed. Adding a new blockNeverFallThrough helper to make the tests on !HasFallThrough safe by also checking IsBrAnalyzable. We also try to prove no-fallthrough by inspecting the successor list. If the textual successor isn't in the successor list we know that there is no fallthrough. The bug has probably been around for years. Found it when working on an out-of-tree target.
Author
Parents
Loading