[llvm] Handle #dbg_values in SROA. (PR #94070)

Shubham Sandeep Rastogi via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 12:05:04 PDT 2024


rastogishubham wrote:

So I looked into this for a bit, and indeed there are more `#dbg_values` being generated with this patch.

Without this patch, when I run `llvm-dis` on the object file, which was compiled with full lto. I can see 422047 `dbg_values`
With this patch, that number goes to 529123 which is 25% more `dbg_values`

If we look at the per file statistics:

```
tramp3d-v4 | 169135M | 176134M (+4.14%)
-- | -- | --
CMakeFiles/tramp3d-v4.dir/tramp3d-v4.cpp.o | 69057M | 71174M (+3.07%)
tramp3d-v4.link | 100078M | 104960M (+4.88%)
```

Both the compile time and link time are up, however, I noticed a small optimization I could make in the patch itself:


```
tramp3d-v4 | 176134M | 175803M (-0.19%)
-- | -- | --
CMakeFiles/tramp3d-v4.dir/tramp3d-v4.cpp.o | 71174M | 70954M (-0.31%)
tramp3d-v4.link

```







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


More information about the llvm-commits mailing list