[llvm] [StatepointLowering] Use Constant instead of TargetConstant for undef value (PR #81635)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 13 10:35:04 PST 2024


================
@@ -0,0 +1,32 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -verify-machineinstrs < %s | FileCheck %s
+
+target datalayout = "e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-pc-linux-gnu"
+
+declare void @use(...)
+declare void @f()
+declare token @llvm.experimental.gc.statepoint.p0(i64, i32, ptr, i32, i32, ...)
+declare ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token, i32, i32)
+
+;; Check that llvm doesn't crash if relcoate with undef base/derived ptr survives until isel
----------------
arsenm wrote:

```suggestion
;; Check that llvm doesn't crash if relocate with undef base/derived ptr survives until isel
```

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


More information about the llvm-commits mailing list