[PATCH] D128689: llvm-reduce: Add reduction for instruction defs
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 27 16:49:09 PDT 2022
arsenm created this revision.
arsenm added reviewers: markus, qcolombet, MatzeB, paquette, aeubanks.
Herald added a subscriber: mgorny.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
Try to insert an implicit_def to replace the instruction's value,
replacing the original instruction's def with a dead register. If all
defs are delete the instruction entirely.
This is pretty similar to the instruction reduction, but leaves the
new defs in the same place as the original instruction. This could
possibly replace it. I'm not sure if we should directly delete the
instructions here, or leave dead ones behind.
This could also further work to replace physical register defs.
https://reviews.llvm.org/D128689
Files:
llvm/test/tools/llvm-reduce/mir/generic-vreg.mir
llvm/test/tools/llvm-reduce/mir/reduce-register-defs.mir
llvm/tools/llvm-reduce/CMakeLists.txt
llvm/tools/llvm-reduce/DeltaManager.cpp
llvm/tools/llvm-reduce/deltas/ReduceRegisterDefs.cpp
llvm/tools/llvm-reduce/deltas/ReduceRegisterDefs.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128689.440435.patch
Type: text/x-patch
Size: 14396 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220627/dc0128f7/attachment.bin>
More information about the llvm-commits
mailing list