This is an archive of the discontinued LLVM Phabricator instance.

[Remarks] Provide more information about auto-init calls
ClosedPublic

Authored by thegameg on Feb 25 2021, 11:06 AM.

Details

Summary

This now analyzes calls to both intrinsics and functions.

For intrinsics, grab the ones we know and care about (mem* family) and
analyze the arguments.

For calls, use TLI to get more information about the libcalls, then
analyze the arguments if known.

auto-init.c:4:7: remark: Call to memset inserted by -ftrivial-auto-var-init. Memory operation size: 4096 bytes. [-Rpass-missed=annotation-remarks]
  int var[1024];
      ^

Diff Detail

Event Timeline

thegameg created this revision.Feb 25 2021, 11:06 AM
thegameg requested review of this revision.Feb 25 2021, 11:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2021, 11:06 AM
This revision is now accepted and ready to land.Feb 25 2021, 2:01 PM
This revision was landed with ongoing or failed builds.Feb 25 2021, 3:14 PM
This revision was automatically updated to reflect the committed changes.