Page MenuHomePhabricator

Added Support for Warning Flag -Wstack-usage=
AbandonedPublic

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

Details

Summary

The -Wstack-usage flag has been added, which provides a
warning message when size of stack exceeds user provided value.

Diff Detail

Unit TestsFailed

TimeTest
80 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
150 msx64 windows > LLVM.CodeGen/AMDGPU::stack-size-overflow.ll
Script: -- : 'RUN: at line 1'; not c:\ws\w16e2-1\llvm-project\premerge-checks\build\bin\llc.exe -march=amdgcn < C:\ws\w16e2-1\llvm-project\premerge-checks\llvm\test\CodeGen\AMDGPU\stack-size-overflow.ll 2>&1 | c:\ws\w16e2-1\llvm-project\premerge-checks\build\bin\filecheck.exe -check-prefix=ERROR C:\ws\w16e2-1\llvm-project\premerge-checks\llvm\test\CodeGen\AMDGPU\stack-size-overflow.ll