[PATCH] D60403: [CostModel][X86] Add bool anyof/allof reduction costs
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 05:38:49 PDT 2019
RKSimon created this revision.
RKSimon added reviewers: ABataev, craig.topper, spatel.
Herald added a project: LLVM.
On pre-AVX512 targets we can use MOVMSK to extract reduced boolean results. This is properly optimized, annoyingly AVX512 isn't and produces code that is almost as bad as the (unchanged) costs suggest......
Repository:
rL LLVM
https://reviews.llvm.org/D60403
Files:
lib/Target/X86/X86TargetTransformInfo.cpp
test/Analysis/CostModel/X86/reduce-and-widen.ll
test/Analysis/CostModel/X86/reduce-and.ll
test/Analysis/CostModel/X86/reduce-or-widen.ll
test/Analysis/CostModel/X86/reduce-or.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60403.194121.patch
Type: text/x-patch
Size: 43430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190408/04b55efe/attachment.bin>
More information about the llvm-commits
mailing list