[llvm] [CodeGenPrepare] Filter out unrecreatable addresses from memory optimization (PR #143566)

Evgenii Kudriashov via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 26 14:52:53 PDT 2025


e-kud wrote:

@weiguozhi I think we need to skip only instructions. There are two failed test cases:
```
 LLVM :: Transforms/CodeGenPrepare/ARM/dead-gep.ll
 LLVM :: Transforms/CodeGenPrepare/NVPTX/dont-introduce-addrspacecast.ll
```
First one is about propagating `undef` base that is `Value`. However for the second we duplicate series of `inttoptr` `ptrtoint` casts because base is an argument, looks like the expected change.

https://github.com/llvm/llvm-project/pull/143566


More information about the llvm-commits mailing list