[PATCH] D99908: [GlobalISel] Simplify G_ICMP against true/false when boolean contents are 0/1
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 6 10:39:44 PDT 2021
paquette updated this revision to Diff 335584.
paquette added a comment.
Herald added subscribers: kerbowa, nhaehnle, jvesely.
- Change KB check to an assert
- Handle vectors
- Add a vector test in AMDGPU (which has ZeroOrOneBooleanContent for vectors)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99908/new/
https://reviews.llvm.org/D99908
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-simplify-cmp-known-true-false.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/prelegalizercombiner-simplify-cmp-known-true-false.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99908.335584.patch
Type: text/x-patch
Size: 20251 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210406/388e221b/attachment.bin>
More information about the llvm-commits
mailing list