[PATCH] D153502: [DAGCombiner] Change `foldAndOrOfSETCC()` to optimize and/or patterns as follows: ``` CMP(A,C)||CMP(B,C) => CMP(MIN/MAX(A,B), C) CMP(A,C)&&CMP(B,C) => CMP(MIN/MAX(A,B), C) ``` This first patch handles integer types.
Konstantina Mitropoulou via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 23:43:51 PDT 2023
kmitropoulou updated this revision to Diff 533480.
kmitropoulou added a comment.
Updating D153502 <https://reviews.llvm.org/D153502>: [DAGCombiner] Change `foldAndOrOfSETCC()` to optimize and/or patterns as follows: ``` CMP(A,C)||CMP(B,C) => CMP(MIN/MAX(A,B), C) CMP(A,C)&&CMP(B,C) => CMP(MIN/MAX(A,B), C) ``` This first patch handles integer types.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153502/new/
https://reviews.llvm.org/D153502
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AArch64/vecreduce-bool.ll
llvm/test/CodeGen/AMDGPU/combine-cond-add-sub.ll
llvm/test/CodeGen/AMDGPU/combine_andor_with_cmps.ll
llvm/test/CodeGen/AMDGPU/valu-i1.ll
llvm/test/CodeGen/PowerPC/setcc-logic.ll
llvm/test/CodeGen/RISCV/zbb-cmp-combine.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153502.533480.patch
Type: text/x-patch
Size: 74077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230622/4d721b05/attachment.bin>
More information about the llvm-commits
mailing list