[llvm] Fix stack layout for frames larger than 2gb (PR #84114)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 11:06:00 PST 2024


================
@@ -0,0 +1,22 @@
+; RUN: llc -O0 -mtriple=x86_64 < %s | FileCheck %s --check-prefix=CHECK
+%large = type [4294967295 x i8]
+
+define void @foo() unnamed_addr #0 {
+  %1 = alloca %large, align 1
+  %2 = alloca %large, align 1
+  %3 = getelementptr inbounds %large, %large* %1, i64 0, i64 0
----------------
MaskRay wrote:

Use `ptr` opaque types for new tests.

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


More information about the llvm-commits mailing list