llvm-project
a9474191 - [SROA] Improve handling of lifetimes in load-only promotion (#135382)

Commit
205 days ago
[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.
Author
Parents
Loading