[PATCH] D111765: [llvm-reduce] Add reduction passes to reduce operands to undef/1/0
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 13 16:07:57 PDT 2021
aeubanks created this revision.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Having non-undef constants in a final llvm-reduce output is nicer than
having undefs.
This splits the existing reduce-operands pass into three, one which does
the same as the current pass of reducing to undef, and two more to
reduce to the constant 1 and the constant 0.
Reducing GEP operands very frequently causes invalid IR (since types may
not match up if we index differently into a struct), so don't touch GEPs.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111765
Files:
llvm/test/tools/llvm-reduce/remove-invoked-functions.ll
llvm/test/tools/llvm-reduce/remove-operands.ll
llvm/tools/llvm-reduce/DeltaManager.cpp
llvm/tools/llvm-reduce/deltas/ReduceOperands.cpp
llvm/tools/llvm-reduce/deltas/ReduceOperands.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111765.379545.patch
Type: text/x-patch
Size: 9775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211013/0db1d2fe/attachment.bin>
More information about the llvm-commits
mailing list