[all-commits] [llvm/llvm-project] f53d79: Improve the diagnostic of DiagnosticInfoResourceLi...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jun 22 09:55:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f53d791520d85c5404381ff3ad92cb918256029d
      https://github.com/llvm/llvm-project/commit/f53d791520d85c5404381ff3ad92cb918256029d
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-06-22 (Tue, 22 Jun 2021)

  Changed paths:
    M clang/test/Misc/backend-resource-limit-diagnostics.cl
    M clang/test/Misc/backend-stack-frame-diagnostics-fallback.cpp
    M llvm/include/llvm/IR/DiagnosticInfo.h
    M llvm/lib/CodeGen/PrologEpilogInserter.cpp
    M llvm/lib/IR/DiagnosticInfo.cpp
    M llvm/test/CodeGen/AMDGPU/exceed-max-sgprs.ll
    M llvm/test/CodeGen/AMDGPU/stack-size-overflow.ll
    M llvm/test/CodeGen/ARM/warn-stack.ll
    M llvm/test/CodeGen/X86/warn-stack.ll

  Log Message:
  -----------
  Improve the diagnostic of DiagnosticInfoResourceLimit (and warn-stack-size in particular)

Before: `warning: stack size limit exceeded (888) in main`
After: `warning: stack frame size (888) exceeds limit (100) in function 'main'` (the -Wframe-larger-than limit will be mentioned)

Reviewed By: nickdesaulniers

Differential Revision: https://reviews.llvm.org/D104667




More information about the All-commits mailing list