[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 Sep 26 23:15:52 PDT 2021


Meinersbur added a comment.

I was working on such a change myself.

One remark here: Replacing a pointer by a NULL value can have a similar destructive effects like undef. When replacing an LoadInst or StoreInst address with NULL, it is introducing undefined behaviour where there was none before and make test cases reduced this way useless. Could we also optionally not replace pointers with null values? Similar though might also apply to the divisor of a divide/remainder operation.

I made a delta pass that converts these to function arguments instead and could upstream it.


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