If the function being called is noreturn it's functionally correct to have a tail call followed by unreachable. It appears to be avoided for normal tail calls for performance reasons, but it's allowed in other guaranteed TCO cases, so I don't think there's any reason to restrict musttail.
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
60,080 ms | x64 debian > MLIR.Examples/standalone::test.toy |
Event Timeline
Comment Actions
Missing LangRef update.
It's hard for me to imagine this significantly helps optimizations, but I don't think it will cause any problems.