OSDN Git Service

[X86] Rearrange some of the code around AVX512 sign/zero extends. NFCI
authorCraig Topper <craig.topper@intel.com>
Tue, 5 Dec 2017 01:28:00 +0000 (01:28 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 5 Dec 2017 01:28:00 +0000 (01:28 +0000)
commitb65db5ed969985708f374745fd65eda720880826
tree00c9c7d0992d17546b1197057e1e61b9cf8504f4
parent5eb464901bea0241bcc9b9eb19df836961abb9f9
[X86] Rearrange some of the code around AVX512 sign/zero extends. NFCI

Move the AVX512 code out of LowerAVXExtend. LowerAVXExtend has two callers but one of them pre-checks for AVX-512 so the code is only live from the other caller. So move the AVX-512 checks up to that caller for symmetry.

Move all of the i1 input type code in Lower_AVX512ZeroExend together.

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