[PATCH] D135539: llvm-reduce: Don't write out IR to score IR complexity

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 9 09:03:10 PDT 2022


arsenm created this revision.
arsenm added reviewers: regehr, aeubanks, lebedev.ri, fhahn, Meinersbur.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

In a testcase I'm working on, the old write out and count IR lines
was taking about 200-300ms per iteration. This drops it out of the
profile.

      

This doesn't account for everything, but it doesn't seem to matter.
We should probably try to account for metadata and constantexpr tree
depths.


https://reviews.llvm.org/D135539

Files:
  llvm/tools/llvm-reduce/ReducerWorkItem.cpp
  llvm/tools/llvm-reduce/ReducerWorkItem.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135539.466377.patch
Type: text/x-patch
Size: 3632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221009/f4ca4ea2/attachment.bin>


More information about the llvm-commits mailing list