A valid DominatorTree is needed to do PhiTranslation.
Before this patch, a MemoryUse could be optimized to an access outside a loop, while the address it loads from is modified in the loop.
This can lead to a miscompile.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
oof. thanks for this!
lgtm once a few nits are addressed.
llvm/include/llvm/Analysis/MemorySSA.h | ||
---|---|---|
726 | nit: unless style around auto has changed, please spell out const DominatorTree & (dunno offhand if const is possible here necessary, but ...) secondary nit: since MSSA is a pretty big class with a fair few users, can we call this getDomTree() instead? |
nit: unless style around auto has changed, please spell out const DominatorTree &
(dunno offhand if const is possible here necessary, but ...)
secondary nit: since MSSA is a pretty big class with a fair few users, can we call this getDomTree() instead?