================ ---------------- fhahn wrote: I added a bit more details in https://github.com/llvm/llvm-project/pull/221483/changes#r4081102714, checking the generated IR gives the most accurate results https://github.com/llvm/llvm-project/pull/221483