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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 25 23:13:03 PDT 2024


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

This change looks incorrect to me: `%p` might be a malloc-ed pointer here, which would leak after the transform.

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


More information about the llvm-commits mailing list