[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 23:34:00 PDT 2020


lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.

This seems fine to me, thanks.
If you have llvm-reduce crashers, do let me know, i'm interested.



================
Comment at: llvm/tools/llvm-reduce/llvm-reduce.cpp:84-87
+  if (ReplaceInput) // In-place
+    OutputFilename = InputFilename.c_str();
+  else if (OutputFilename.empty() || OutputFilename == "-")
+    OutputFilename = "reduced.ll";
----------------
I wonder if we want do to something special if input == output?



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