[PATCH] D69083: [X86] Only look up boolean reduction cost tables if the reduction is not pairwise.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 26 16:43:16 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1ce8a5b385a1: [X86] Only look up boolean reduction cost tables if the reduction is not… (authored by craig.topper).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69083/new/
https://reviews.llvm.org/D69083
Files:
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
Index: llvm/lib/Target/X86/X86TargetTransformInfo.cpp
===================================================================
--- llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+++ llvm/lib/Target/X86/X86TargetTransformInfo.cpp
@@ -2665,7 +2665,7 @@
};
// Handle bool allof/anyof patterns.
- if (ValTy->getVectorElementType()->isIntegerTy(1)) {
+ if (!IsPairwise && ValTy->getVectorElementType()->isIntegerTy(1)) {
if (ST->hasAVX2())
if (const auto *Entry = CostTableLookup(AVX2BoolReduction, ISD, MTy))
return LT.first * Entry->Cost;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69083.226555.patch
Type: text/x-patch
Size: 562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191026/c68aac3f/attachment.bin>
More information about the llvm-commits
mailing list