mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-24 12:29:33 +00:00
use SDValue methods directly instead of getNode()->* ; NFCI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f43ce56642
commit
9598bbc542
@ -13198,21 +13198,21 @@ static SDValue LowerEXTRACT_SUBVECTOR(SDValue Op, const X86Subtarget *Subtarget,
|
|||||||
static SDValue LowerINSERT_SUBVECTOR(SDValue Op, const X86Subtarget *Subtarget,
|
static SDValue LowerINSERT_SUBVECTOR(SDValue Op, const X86Subtarget *Subtarget,
|
||||||
SelectionDAG &DAG) {
|
SelectionDAG &DAG) {
|
||||||
if (Subtarget->hasFp256()) {
|
if (Subtarget->hasFp256()) {
|
||||||
SDLoc dl(Op.getNode());
|
SDLoc dl(Op);
|
||||||
SDValue Vec = Op.getNode()->getOperand(0);
|
SDValue Vec = Op.getOperand(0);
|
||||||
SDValue SubVec = Op.getNode()->getOperand(1);
|
SDValue SubVec = Op.getOperand(1);
|
||||||
SDValue Idx = Op.getNode()->getOperand(2);
|
SDValue Idx = Op.getOperand(2);
|
||||||
|
|
||||||
if ((Op.getNode()->getSimpleValueType(0).is256BitVector() ||
|
if ((Op.getSimpleValueType().is256BitVector() ||
|
||||||
Op.getNode()->getSimpleValueType(0).is512BitVector()) &&
|
Op.getSimpleValueType().is512BitVector()) &&
|
||||||
SubVec.getNode()->getSimpleValueType(0).is128BitVector() &&
|
SubVec.getSimpleValueType().is128BitVector() &&
|
||||||
isa<ConstantSDNode>(Idx)) {
|
isa<ConstantSDNode>(Idx)) {
|
||||||
unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
|
unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
|
||||||
return Insert128BitVector(Vec, SubVec, IdxVal, DAG, dl);
|
return Insert128BitVector(Vec, SubVec, IdxVal, DAG, dl);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Op.getNode()->getSimpleValueType(0).is512BitVector() &&
|
if (Op.getSimpleValueType().is512BitVector() &&
|
||||||
SubVec.getNode()->getSimpleValueType(0).is256BitVector() &&
|
SubVec.getSimpleValueType().is256BitVector() &&
|
||||||
isa<ConstantSDNode>(Idx)) {
|
isa<ConstantSDNode>(Idx)) {
|
||||||
unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
|
unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
|
||||||
return Insert256BitVector(Vec, SubVec, IdxVal, DAG, dl);
|
return Insert256BitVector(Vec, SubVec, IdxVal, DAG, dl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user