diff options
author | Haopeng Liu <153236845+haopliu@users.noreply.github.com> | 2024-01-18 11:10:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 11:10:16 -0800 |
commit | a58ad3e2a33eafc821714f9d27b74279fb4d607c (patch) | |
tree | ae1a0994bb6187855cf7bd5fc8878671aef0876b /llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp | |
parent | fa6c3df6add2559ee6f31762e7667cedc6e31a0b (diff) | |
download | llvm-a58ad3e2a33eafc821714f9d27b74279fb4d607c.zip llvm-a58ad3e2a33eafc821714f9d27b74279fb4d607c.tar.gz llvm-a58ad3e2a33eafc821714f9d27b74279fb4d607c.tar.bz2 |
[clang] Add size filter for stack auto init (#74777)
Add a clang flag, "-ftrivial-auto-var-init-max-size=" so that clang
skips auto-init a variable if the auto-init memset size exceeds the flag
setting (in bytes). Note that this skipping doesn't apply to
runtime-sized variables like VLA.
Considerations: "__attribute__((uninitialized))" can be used to manually
opt variables out. However, there are thousands of large variables
(e.g., >=1KB, most of them are arrays and used as buffers) in big
codebase. Manually opting them out one by one is not efficient.
Diffstat (limited to 'llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions