[PATCH] D86360: Add new hidden option -print-changed which only reports changes to IR

Jamie Schmeiser via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 14:36:19 PDT 2020


jamieschmeiser updated this revision to Diff 288707.
jamieschmeiser added a comment.
Herald added a subscriber: danielkiss.

Create 2 dummy passes, one that changes the IR by adding a dummy attribute
to a function, the other which does not change the IR.  Neither are
added to any pipeline.  Change the -print-changed unit test to use these
2 passes to make the unit test robust.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86360/new/

https://reviews.llvm.org/D86360

Files:
  llvm/include/llvm/Passes/StandardInstrumentations.h
  llvm/lib/IR/LegacyPassManager.cpp
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Passes/PassRegistry.def
  llvm/lib/Passes/StandardInstrumentations.cpp
  llvm/test/Other/change-printer.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86360.288707.patch
Type: text/x-patch
Size: 26330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200828/2d522292/attachment.bin>


More information about the llvm-commits mailing list