[SelectionDAG] Make getZeroExtendInReg take a vector VT if the operand VT is a vector.
authorCraig Topper <craig.topper@intel.com>
Tue, 7 Apr 2020 18:02:04 +0000 (11:02 -0700)
committerCraig Topper <craig.topper@intel.com>
Tue, 7 Apr 2020 18:34:08 +0000 (11:34 -0700)
commitc41685b16fcceaa2078eb14eb27f6696f851eb49
tree2bac0c72b896ce4312c74e06e9a1b7f78093a58e
parent1a28d33f37f95c76ecba4cf1fc577940bf5e7280
[SelectionDAG] Make getZeroExtendInReg take a vector VT if the operand VT is a vector.

This removes a call to getScalarType from a bunch of call sites.
It also makes the behavior consistent with SIGN_EXTEND_INREG.

Differential Revision: https://reviews.llvm.org/D77631
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp