[PATCH] D76640: [GlobalISel] Combine (x op 0) -> x for operations with a right identity of 0
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 23 17:26:47 PDT 2020
paquette updated this revision to Diff 252182.
paquette retitled this revision from "[GlobalISel] Combine (x - 0) -> x" to "[GlobalISel] Combine (x op 0) -> x for operations with a right identity of 0".
paquette edited the summary of this revision.
paquette added a comment.
- Just do every right identity I can think of instead of just G_SUB
- Use `mi_match`
- Keep MOP because it's the right thing to do
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76640/new/
https://reviews.llvm.org/D76640
Files:
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-trivial-arith.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76640.252182.patch
Type: text/x-patch
Size: 7113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200324/b386d6bb/attachment.bin>
More information about the llvm-commits
mailing list