[PATCH] D110274: [llvm-reduce] Add option to reduce values to zero instead of undef

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 10 23:27:00 PDT 2021


Meinersbur added a comment.

In D110274#3041959 <https://reviews.llvm.org/D110274#3041959>, @fhahn wrote:

> @Meinersbur I think it would be great if you could share that patch.  I don't think adding arguments is a problem per-se, especially if it is limited to a small set of functions required in the final reproducer. One of the main benefits of replacing `undef` is reducing new sources of UB, which adding arguments would achieve. There also should be a couple of things we could do to try to keep the number of extra arguments in check, e.g. trying to re-use arguments.

D111503 <https://reviews.llvm.org/D111503>

I have another pass that "compresses" arguments by reusing other values of the same type s.t. that some become unused and are removed by the argument reduction pass.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110274



More information about the llvm-commits mailing list