[X86] Minor cleanup to getExtendInVec. NFCI
authorCraig Topper <craig.topper@intel.com>
Thu, 15 Nov 2018 19:20:22 +0000 (19:20 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 15 Nov 2018 19:20:22 +0000 (19:20 +0000)
commitb144c7a6fbb86d6790e2ce4e3f0772ea3c15ca45
tree0e10c2beeed731ac67aafdfd09c2d303519de544
parentc92aa7618f2c6d24c0baa02ee86d734f8b3ad6db
[X86] Minor cleanup to getExtendInVec. NFCI

Use unsigned to calculate the subvector index to avoid a cast.

Remove an unnecessary condition and replace it with a stronger assert.

Use the InVT variable we updated when we extracted instead of grabbing it from the In SDValue.

llvm-svn: 346983
llvm/lib/Target/X86/X86ISelLowering.cpp