OSDN Git Service

[X86] Add exhaustive cost model testing for sext/zext for all vector types we reasona...
authorCraig Topper <craig.topper@intel.com>
Tue, 27 Nov 2018 22:46:05 +0000 (22:46 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 27 Nov 2018 22:46:05 +0000 (22:46 +0000)
commitb72b8f22f006d1ead794faf328b359a9c0d393b9
treef2d9ffd9b175c259d23b189c82f1228c744cf8fb
parente41f778c5c5aa46af9395a2455fff03e8aca592e
[X86] Add exhaustive cost model testing for sext/zext for all vector types we reasonably support. Add cost model tests for truncating to vXi1.

Our sext/zext cost modeling was somewhat incomplete. And had no coverage for the fact that avx512bw v32i16/v64i8 types return a scalarization cost.

Truncates are a whole different mess because isTruncateFree is returning true for vectors when it shouldn't and that's the fall back for anything not in the tables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347719 91177308-0d34-0410-b5e6-96231b3b80d8
test/Analysis/CostModel/X86/extend.ll [new file with mode: 0644]
test/Analysis/CostModel/X86/trunc.ll