[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 07:19:22 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 mean I don't remember the exact iteration status. Without this patch, and without additional pass arguments, do you see the verifier error in this test as-is?

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


More information about the llvm-commits mailing list