[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
Wed Oct 13 08:23:42 PDT 2021


Meinersbur added a comment.

@aeubanks Can I have enabled Undef values but reduce to zero constants too, in case Zero still triggers the bug, but not Undef? In my experience, constant one (for integers) also helped reducing further.

What I have been using is a "reduce-to-one", "reduce-to-zero" and "reduce-to-undef" pass. reduce-to-one would not reduce anything that is already one, zero, or undef (to ensure we can reach a fixpoint). reduce-to-zero does not change anything that is already zero or undef. reduce-to-undef can reduce what is not already undef. To not have undef appear in the reduction output, I would just not run the reduce-to-undef pass.

Thoughts?


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