[llvm] MemCpyOpt: replace an AA query with MSSA query (NFC) (PR #108535)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 07:03:55 PDT 2024
nikic wrote:
> > A disadvantage of using MSSA is that we'll scan for clobbers higher than the load instruction. This is a general problem with MSSA clobber walks though, it would be nice if they have an option to specify a "stop access" so we don't waste time scanning higher.
>
> Yes, I saw this being noted in a TODO in the file. Does it walk through non-memory instructions as well, or does it keep a representation of just the memory instructions?
It only walks memory instructions. But the expensive part are the AA queries.
https://github.com/llvm/llvm-project/pull/108535
More information about the llvm-commits
mailing list