[PATCH] D113816: [llvm-reduce] Assert that the number of chunks does not change with reductions

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 2 07:39:03 PST 2023


foad added inline comments.


================
Comment at: llvm/tools/llvm-reduce/deltas/Delta.cpp:241
+           "input module is broken after counting chunks");
+    assert(isReduced(Test.getProgram(), Test, CurrentFilepath) &&
+           "input module no longer interesting after counting chunks");
----------------
foad wrote:
> Hi! I've hit this assertion failure because I'm using llvm-reduce to reduce a compile-time hog, so the interestingness test ("does it take longer than 1 second to compile") is not 100% consistent. Of course it seems to me like llvm-reduce ought to support this use case. Any thoughts?
In any case I think this should be a proper diagnostic, not an assert, like the "Input isn't interesting!" error.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113816



More information about the llvm-commits mailing list