diff options
author | Nikita Popov <npopov@redhat.com> | 2025-04-14 17:52:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-14 11:52:42 +0200 |
commit | a9474191e059edbb9b25c769afbe52c7a823f359 (patch) | |
tree | 0b591d861d6e2698b0c57c6dca5ccd5b78062247 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c9eebc7af440dc012c94d25351eaba92e6a57910 (diff) | |
download | llvm-a9474191e059edbb9b25c769afbe52c7a823f359.zip llvm-a9474191e059edbb9b25c769afbe52c7a823f359.tar.gz llvm-a9474191e059edbb9b25c769afbe52c7a823f359.tar.bz2 |
[SROA] Improve handling of lifetimes in load-only promotion (#135382)
The propagateStoredValuesToLoads() transform currently bails out if
there is a lifetime intrinsic spanning the whole alloca, but the
individual loads/stores operate on some smaller part, because the slice
/ partition size does not match.
Fix this by ignoring assume-like slices early, regardless of which range
they cover.
I've changed the overall code structure here a bit because I was getting
confused by the different iterators.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions