[llvm] [GlobalOpt] add support for CallInst and InvokeInst users (PR #221955)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 04:01:21 PDT 2026


================
@@ -0,0 +1,21 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt -S -passes=globalopt < %s | FileCheck %s
+
+ at g0 = internal global ptr null, align 8
+ at g30 = internal global ptr @g0, align 8
----------------
nikic wrote:

The second global is unnecessary and just obscures things.

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


More information about the llvm-commits mailing list