[llvm] [Mips] Fix $gp was restored when used as global register variable (PR #201778)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 02:29:40 PDT 2026


================
@@ -0,0 +1,23 @@
+; RUN: llc -mtriple=mips64el -mcpu=mips64r2 < %s | FileCheck %s -check-prefix=MIPS64
+
+; Test that when a user declares $28 as a global register, assignments to it are
+; not optimizes away.
----------------
arsenm wrote:

```suggestion
; not optimized away.
```

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


More information about the llvm-commits mailing list