[llvm] [llvm-lit] Ignore malformed `.lit_test_times` entries (PR #191305)

Jonathan Thackray via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 15:40:01 PDT 2026


jthackray wrote:

> It would be good to actually understand why.

Yes, I don't know, but it has happened to me a few times in the last six months.
 
> Given the performance benefit is not super noticeable (10-15%) I feel silently ignoring malformed timing data could easily put us in a place where suddenly lit is actually outputting malformed timing data and no one notices. We should at least have a warning if we want to go down this direction.

Agreed. An alternative might be just to print out the name of the corrupted file, with a message suggesting it is removed. This would be much better than a Python stack trace, which gives no clue as to what the issue. (Thankfully, ChatGPT clued me in, and once I found the broken file, I could run my tests again).

https://github.com/llvm/llvm-project/pull/191305


More information about the llvm-commits mailing list