[llvm-dev] Stack Usage is more in the libunwind library .

Umesh Kalappa via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 27 02:49:10 PST 2020


Hi All,

We recently migrated to llvm 9 from gcc -7 and found that the stack
usage is more  like 5K in the below function

getInfoFromDwarfSection() @ line : 1484
<https://github.com/llvm-mirror/libunwind/blob/master/src/UnwindCursor.hpp#L1484>


With our analysis and found that  "typename CFI_Parser<A>::PrologInfo
prolog" local data is taking up almost 4K space.
So we thinking to refactor the code by pushing the "prolog" to a global
scope.
Any comments on our approach will be appreciated

Thank you
~Umesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200127/2548841a/attachment.html>


More information about the llvm-dev mailing list