[PATCH] D85996: [llvm-reduce] make llvm-reduce save the best reduction it has when it crashes

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 14:17:45 PDT 2020


lebedev.ri requested changes to this revision.
lebedev.ri added a comment.
This revision now requires changes to proceed.

1. I'm pretty sure it's not okay to allcate memory in crash handler.
2. We can't know that the internal state is still consistent.

We already store each IR to disk to run the interestingness test on it.
Instead of `LastIntersting = ReducedProgram.get();`, let's just rewrite the `OutputFilename` each time.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85996



More information about the llvm-commits mailing list