diff options
author | Craig Topper <craig.topper@intel.com> | 2020-04-09 16:58:28 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2020-04-09 17:28:50 -0700 |
commit | 5625e6ab3788a788662f48dc7f5119defb43f08d (patch) | |
tree | dfaf3c87e5c57f0be177e572f6db091e0b375071 /llvm/lib/Support/OptimizedStructLayout.cpp | |
parent | 5fe2809447398dd53ef6179e8c551356600296fc (diff) | |
download | llvm-5625e6ab3788a788662f48dc7f5119defb43f08d.zip llvm-5625e6ab3788a788662f48dc7f5119defb43f08d.tar.gz llvm-5625e6ab3788a788662f48dc7f5119defb43f08d.tar.bz2 |
[X86] Improve min/max reduction costs.
This is similar to what I recently did for getArithmeticReductionCost.
I'm trying to account for the narrowing from 512->256->128 as we go.
I've also added a new helper method getMinMaxCost that tries to
handle the cases where we have native min/max instructions and
fall back to cmp+select when we don't.
Differential Revision: https://reviews.llvm.org/D76634
Diffstat (limited to 'llvm/lib/Support/OptimizedStructLayout.cpp')
0 files changed, 0 insertions, 0 deletions