Page MenuHomePhabricator

Added support for -Wstack-usage flag and Framesize reporting fix
AbandonedPublic

Authored by rsanthir.quic on May 5 2021, 6:05 PM.

Details

Summary

This patch adds support for the -Wstack-usage flag. It also changes
how -Wframe-larger-than reports it's frame size. It now excludes the
space allocated to hold parameters for called functions.

Diff Detail

Unit TestsFailed

TimeTest
90 msx64 debian > LLVM.CodeGen/AMDGPU::stack-size-overflow.ll
Script: -- : 'RUN: at line 1'; not /mnt/disks/ssd0/agent/llvm-project/build/bin/llc -march=amdgcn < /mnt/disks/ssd0/agent/llvm-project/llvm/test/CodeGen/AMDGPU/stack-size-overflow.ll 2>&1 | /mnt/disks/ssd0/agent/llvm-project/build/bin/FileCheck -check-prefix=ERROR /mnt/disks/ssd0/agent/llvm-project/llvm/test/CodeGen/AMDGPU/stack-size-overflow.ll
30 msx64 debian > LLVM.CodeGen/ARM::warn-stack.ll
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/bin/llc -mtriple thumbv7-apple-ios3.0.0 -warn-stack-size=80 < /mnt/disks/ssd0/agent/llvm-project/llvm/test/CodeGen/ARM/warn-stack.ll 2>&1 >/dev/null | /mnt/disks/ssd0/agent/llvm-project/build/bin/FileCheck /mnt/disks/ssd0/agent/llvm-project/llvm/test/CodeGen/ARM/warn-stack.ll
50 msx64 debian > LLVM.CodeGen/X86::warn-stack.ll
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/bin/llc -mtriple x86_64-apple-macosx10.8.0 -warn-stack-size=80 < /mnt/disks/ssd0/agent/llvm-project/llvm/test/CodeGen/X86/warn-stack.ll 2>&1 >/dev/null | /mnt/disks/ssd0/agent/llvm-project/build/bin/FileCheck /mnt/disks/ssd0/agent/llvm-project/llvm/test/CodeGen/X86/warn-stack.ll
140 msx64 windows > LLVM.CodeGen/AMDGPU::stack-size-overflow.ll
Script: -- : 'RUN: at line 1'; not c:\ws\w16n2-1\llvm-project\premerge-checks\build\bin\llc.exe -march=amdgcn < C:\ws\w16n2-1\llvm-project\premerge-checks\llvm\test\CodeGen\AMDGPU\stack-size-overflow.ll 2>&1 | c:\ws\w16n2-1\llvm-project\premerge-checks\build\bin\filecheck.exe -check-prefix=ERROR C:\ws\w16n2-1\llvm-project\premerge-checks\llvm\test\CodeGen\AMDGPU\stack-size-overflow.ll
60 msx64 windows > LLVM.CodeGen/ARM::warn-stack.ll
Script: -- : 'RUN: at line 1'; c:\ws\w16n2-1\llvm-project\premerge-checks\build\bin\llc.exe -mtriple thumbv7-apple-ios3.0.0 -warn-stack-size=80 < C:\ws\w16n2-1\llvm-project\premerge-checks\llvm\test\CodeGen\ARM\warn-stack.ll 2>&1 >/dev/null | c:\ws\w16n2-1\llvm-project\premerge-checks\build\bin\filecheck.exe C:\ws\w16n2-1\llvm-project\premerge-checks\llvm\test\CodeGen\ARM\warn-stack.ll
View Full Test Results (6 Failed)