[llvm] [InstCombine] Remove Store which has one-use AddrSpaceCastInst as Ptr (#68120) (PR #79565)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 26 08:08:57 PST 2024


================
@@ -345,6 +345,22 @@ define void @store_to_readonly_noalias(ptr readonly noalias %0) {
   ret void
 }
 
+; if ptr which store to is addrspacecast, and its target is alloca. remove it.
+define void @src_store_oneuse_addrspaceast_alloca(ptr align 8 %arg) {
----------------
arsenm wrote:

I just checked. I see the fix point error without any flags, so it's fine.

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


More information about the llvm-commits mailing list