OSDN Git Service

[X86] Simplify the lowering code for extracting and inserting subvectors.
authorCraig Topper <craig.topper@gmail.com>
Thu, 13 Oct 2016 04:14:47 +0000 (04:14 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 13 Oct 2016 04:14:47 +0000 (04:14 +0000)
commit350bc2e971ec9b019205d21d6112b76b6019ba34
treed9ab84e3ab17cbe01e20250a18693c22d8b11654
parent7c621c7bc89ad0155bc536b78c05ddc8165fd16a
[X86] Simplify the lowering code for extracting and inserting subvectors.

We don't need to check if AVX is enabled. It's implied by the operation action being set to Custom.
We don't need to check both the input and output type widths. We only need to check the type that's being inserted or extracted. The other type is known to be a legal type and we can assume its a different width.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284102 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp