[PATCH] D97961: [Cost]Caonicalize the cost for logical or/and reductions.
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 4 08:55:27 PST 2021
ABataev created this revision.
ABataev added reviewers: RKSimon, spatel, lebedev.ri.
Herald added subscribers: frasercrmck, kerbowa, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, nhaehnle, jvesely, nemanjai.
ABataev requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.
The generic cost of logical or/and reductions should be cost of bitcast
<ReduxWidth x i1> to iReduxWidth + cmp eq|ne iReduxWidth.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97961
Files:
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/test/Analysis/CostModel/AArch64/reduce-and.ll
llvm/test/Analysis/CostModel/AArch64/reduce-or.ll
llvm/test/Analysis/CostModel/AMDGPU/reduce-and.ll
llvm/test/Analysis/CostModel/AMDGPU/reduce-or.ll
llvm/test/Analysis/CostModel/ARM/reduce-and.ll
llvm/test/Analysis/CostModel/ARM/reduce-or.ll
llvm/test/Analysis/CostModel/PowerPC/reduce-and.ll
llvm/test/Analysis/CostModel/PowerPC/reduce-or.ll
llvm/test/Analysis/CostModel/RISCV/reduce-and.ll
llvm/test/Analysis/CostModel/RISCV/reduce-or.ll
llvm/test/Analysis/CostModel/SystemZ/reduce-and.ll
llvm/test/Analysis/CostModel/SystemZ/reduce-or.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97961.328194.patch
Type: text/x-patch
Size: 35249 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210304/226bd30e/attachment.bin>
More information about the llvm-commits
mailing list