mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 13:36:39 +00:00

I've always found this hard to read. Some upcoming changes make similar computations, so I thought it's a good time to factor out this logic into re-usable helpers and clean it up using LLVM's preferred early-return style.