[X86][Costmodel] `trunc v16i32 to v32i16` can appear after legalization, cost is...
authorRoman Lebedev <lebedev.ri@gmail.com>
Sun, 14 Nov 2021 15:41:37 +0000 (18:41 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sun, 14 Nov 2021 15:41:37 +0000 (18:41 +0300)
commita5f2fdca993eca0ae85e90f987fbbfb3b4aee626
tree76b1b8bc418fc272c16d17c080624f3f953a8b5c
parent0662a3612cea579668252571182da7b493b2e124
[X86][Costmodel] `trunc v16i32 to v32i16` can appear after legalization, cost is same as for `trunc v16i32 to v16i16`

This was noticed in D113609, hopefully it unblocks that patch.
There are likely other similar problems.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D113842
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/arith-fix.ll
llvm/test/Analysis/CostModel/X86/arith-overflow.ll
llvm/test/Analysis/CostModel/X86/trunc.ll