[all-commits] [llvm/llvm-project] 077692: [CostModel][X86] getCmpSelInstrCost - treat BAD_PR...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Wed Oct 6 02:15:09 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0776924a17efaf5269f154f899ecb5474e7800f2
https://github.com/llvm/llvm-project/commit/0776924a17efaf5269f154f899ecb5474e7800f2
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2021-10-06 (Wed, 06 Oct 2021)
Changed paths:
M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
M llvm/test/Analysis/CostModel/X86/arith-overflow.ll
M llvm/test/Analysis/CostModel/X86/arith-sminmax.ll
M llvm/test/Analysis/CostModel/X86/arith-ssat.ll
M llvm/test/Analysis/CostModel/X86/arith-uminmax.ll
M llvm/test/Analysis/CostModel/X86/arith-usat.ll
M llvm/test/Analysis/CostModel/X86/fshl.ll
M llvm/test/Analysis/CostModel/X86/fshr.ll
M llvm/test/Analysis/CostModel/X86/intrinsic-cost-kinds.ll
M llvm/test/Analysis/CostModel/X86/reduce-smax.ll
M llvm/test/Analysis/CostModel/X86/reduce-smin.ll
M llvm/test/Analysis/CostModel/X86/reduce-umax.ll
M llvm/test/Analysis/CostModel/X86/reduce-umin.ll
M llvm/test/Transforms/SLPVectorizer/X86/horizontal-minmax.ll
M llvm/test/Transforms/SLPVectorizer/X86/horizontal-smax.ll
M llvm/test/Transforms/VectorCombine/X86/extract-cmp-binop.ll
M llvm/test/Transforms/VectorCombine/X86/extract-cmp.ll
M llvm/test/Transforms/VectorCombine/X86/scalarize-cmp-inseltpoison.ll
M llvm/test/Transforms/VectorCombine/X86/scalarize-cmp.ll
Log Message:
-----------
[CostModel][X86] getCmpSelInstrCost - treat BAD_PREDICATEs the same as the worst case cost predicates for ICMP/FCMP instructions
As suggested on D111024, we should treat getCmpSelInstrCost calls without a specific predicate as matching the worst case predicate cost.
These regressions will be addressed with a mixture of D111024 and fixing other specific getCmpSelInstrCost calls to have realistic predicates.
More information about the All-commits
mailing list