[llvm] [GlobalOpt] Handle operators separately when removing GV users (PR #84694)

Anshil Gandhi via llvm-commits llvm-commits at lists.llvm.org
Mon May 6 23:31:34 PDT 2024


================
@@ -12,7 +12,7 @@ define void @test1a() {
 
 define void @test1b(ptr %p) {
 ; CHECK-LABEL: @test1b(
-; CHECK-NEXT: store
+; CHECK-NOT: store
----------------
gandhi56 wrote:

So, in general, store instructions with a pointer as its value operand should not be removed?

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


More information about the llvm-commits mailing list