[llvm] [PEI][PowerPC] Fix false alarm of stack size limit (PR #65559)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 6 22:15:08 PDT 2023
================
@@ -0,0 +1,16 @@
+; RUN: llc -mtriple=powerpc64-unknown-unknown < %s 2>&1 | FileCheck %s
+; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s 2>&1 | FileCheck %s
+
+; CHECK-NOT: warning: {{.*}} stack frame size ({{.*}}) exceeds limit (4294967295) in function 'large_stack'
+define i8* @large_stack() {
+ %s = alloca [281474976710656 x i8], align 1
+ %e = getelementptr i8, i8* %s, i64 0
----------------
bzEq wrote:
On PPC64, larger-than-4G stack was supported after https://github.com/llvm/llvm-project/commit/5018a5dcbe70a9e2e39341762ec0ca0ad76d28b4.
https://github.com/llvm/llvm-project/pull/65559
More information about the llvm-commits
mailing list