mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Introduce getSelect usage and use more getSelectCC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -605,7 +605,7 @@ SDValue VectorLegalizer::ExpandSELECT(SDValue Op) {
|
||||
// What is the size of each element in the vector mask.
|
||||
EVT BitTy = MaskTy.getScalarType();
|
||||
|
||||
Mask = DAG.getNode(ISD::SELECT, DL, BitTy, Mask,
|
||||
Mask = DAG.getSelect(DL, BitTy, Mask,
|
||||
DAG.getConstant(APInt::getAllOnesValue(BitTy.getSizeInBits()), BitTy),
|
||||
DAG.getConstant(0, BitTy));
|
||||
|
||||
@@ -761,10 +761,10 @@ SDValue VectorLegalizer::UnrollVSETCC(SDValue Op) {
|
||||
Ops[i] = DAG.getNode(ISD::SETCC, dl,
|
||||
TLI.getSetCCResultType(*DAG.getContext(), TmpEltVT),
|
||||
LHSElem, RHSElem, CC);
|
||||
Ops[i] = DAG.getNode(ISD::SELECT, dl, EltVT, Ops[i],
|
||||
DAG.getConstant(APInt::getAllOnesValue
|
||||
(EltVT.getSizeInBits()), EltVT),
|
||||
DAG.getConstant(0, EltVT));
|
||||
Ops[i] = DAG.getSelect(dl, EltVT, Ops[i],
|
||||
DAG.getConstant(APInt::getAllOnesValue
|
||||
(EltVT.getSizeInBits()), EltVT),
|
||||
DAG.getConstant(0, EltVT));
|
||||
}
|
||||
return DAG.getNode(ISD::BUILD_VECTOR, dl, VT, &Ops[0], NumElems);
|
||||
}
|
||||
|
Reference in New Issue
Block a user