[PATCH] D29023: [Stack Protection] Add diagnostic information for why stack protection was applied to a function

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 06:10:27 PST 2017


jhenderson created this revision.
Herald added a subscriber: fhahn.

Stack Smash Protection is not completely free, so in hot code, the overhead it causes can cause performance issues. By adding diagnostic information for which function have SSP and why, a user can quickly determine what they can do to stop SSP being applied to a specific hot function.

This change adds an SSP-specific DiagnosticInfo class and uses of it to the Stack Protection code. A subsequent change to clang will cause the remarks to be emitted when enabled.


https://reviews.llvm.org/D29023

Files:
  include/llvm/IR/DiagnosticInfo.h
  lib/CodeGen/StackProtector.cpp
  lib/IR/DiagnosticInfo.cpp
  test/lit.cfg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29023.85368.patch
Type: text/x-patch
Size: 6972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170123/add6e5e4/attachment.bin>


More information about the llvm-commits mailing list