[PATCH] D38768: Add remarks describing when a pass changes the IR instruction count of a module

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 15 15:16:36 PDT 2018


paquette updated this revision to Diff 146927.
paquette added a comment.

- Updated the test to use globaldce for the module pass
- Ensured that we don't *ever* get the module's instruction count unless the remark has been requested but the user. This is handled in a new helper function, `initSizeRemarkInfo`
- Improved the test. It only runs opt once per pass type we want to handle. It now no longer has hard-coded values for sizes, which should make sure it isn't terribly flakey


https://reviews.llvm.org/D38768

Files:
  include/llvm/IR/Function.h
  include/llvm/IR/LegacyPassManagers.h
  include/llvm/IR/Module.h
  lib/Analysis/CallGraphSCCPass.cpp
  lib/IR/Function.cpp
  lib/IR/LegacyPassManager.cpp
  lib/IR/Module.cpp
  test/Other/size-remarks.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38768.146927.patch
Type: text/x-patch
Size: 15025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180515/ee7dc3cf/attachment.bin>


More information about the llvm-commits mailing list