forked from OSchip/llvm-project
[SDAGBuilder] Make the AArch64 builder happier.
I intended this loop to only unwrap SplitVector actions, but it was more broad than that, such as unwrapping WidenVector actions, which makes operations seem legal when they're not. llvm-svn: 237457
This commit is contained in:
parent
80a96d299a
commit
7307cd57c5
|
@ -2278,11 +2278,11 @@ void SelectionDAGBuilder::visitSelect(const User &I) {
|
|||
|
||||
EVT VT = ValueVTs[0];
|
||||
LLVMContext &Ctx = *DAG.getContext();
|
||||
while (DAG.getTargetLoweringInfo().getTypeToTransformTo(Ctx, VT) != VT)
|
||||
VT = DAG.getTargetLoweringInfo().getTypeToTransformTo(Ctx, VT);
|
||||
auto &TLI = DAG.getTargetLoweringInfo();
|
||||
while (TLI.getTypeAction(Ctx, VT) == TargetLoweringBase::TypeSplitVector)
|
||||
VT = TLI.getTypeToTransformTo(Ctx, VT);
|
||||
|
||||
if (Opc != ISD::DELETED_NODE &&
|
||||
DAG.getTargetLoweringInfo().isOperationLegalOrCustom(Opc, VT)) {
|
||||
if (Opc != ISD::DELETED_NODE && TLI.isOperationLegalOrCustom(Opc, VT)) {
|
||||
OpCode = Opc;
|
||||
LHSVal = getValue(LHS);
|
||||
RHSVal = getValue(RHS);
|
||||
|
|
Loading…
Reference in New Issue