[llvm] [GlobalOpt] Precommit tests for PR84694 (PR #87443)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 13 01:24:57 PDT 2024


================
@@ -51,3 +53,89 @@ entry:
   store i32 0, ptr inttoptr (i64 ptrtoint (ptr @global.20ptr to i64) to ptr), align 8
   ret void
 }
+
+ at gv = internal unnamed_addr global [3 x ptr] zeroinitializer, align 16
+ at gv2 = internal unnamed_addr global i32 0, align 4
+
+;; This is a negative test which includes a load from @gv. No stores
+;; or memintrinsics with destination @gv should be removed.
+define i32 @main_with_load_from_b() local_unnamed_addr {
----------------
fhahn wrote:

Could you use a more descriptive name for the test, same for `@main()` below?

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


More information about the llvm-commits mailing list