[llvm] r227334 - use SDValue methods directly instead of getNode()->* ; NFCI
Sanjay Patel
spatel at rotateright.com
Wed Jan 28 10:01:31 PST 2015
Author: spatel
Date: Wed Jan 28 12:01:31 2015
New Revision: 227334
URL: http://llvm.org/viewvc/llvm-project?rev=227334&view=rev
Log:
use SDValue methods directly instead of getNode()->* ; NFCI
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=227334&r1=227333&r2=227334&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Jan 28 12:01:31 2015
@@ -13198,21 +13198,21 @@ static SDValue LowerEXTRACT_SUBVECTOR(SD
static SDValue LowerINSERT_SUBVECTOR(SDValue Op, const X86Subtarget *Subtarget,
SelectionDAG &DAG) {
if (Subtarget->hasFp256()) {
- SDLoc dl(Op.getNode());
- SDValue Vec = Op.getNode()->getOperand(0);
- SDValue SubVec = Op.getNode()->getOperand(1);
- SDValue Idx = Op.getNode()->getOperand(2);
+ SDLoc dl(Op);
+ SDValue Vec = Op.getOperand(0);
+ SDValue SubVec = Op.getOperand(1);
+ SDValue Idx = Op.getOperand(2);
- if ((Op.getNode()->getSimpleValueType(0).is256BitVector() ||
- Op.getNode()->getSimpleValueType(0).is512BitVector()) &&
- SubVec.getNode()->getSimpleValueType(0).is128BitVector() &&
+ if ((Op.getSimpleValueType().is256BitVector() ||
+ Op.getSimpleValueType().is512BitVector()) &&
+ SubVec.getSimpleValueType().is128BitVector() &&
isa<ConstantSDNode>(Idx)) {
unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
return Insert128BitVector(Vec, SubVec, IdxVal, DAG, dl);
}
- if (Op.getNode()->getSimpleValueType(0).is512BitVector() &&
- SubVec.getNode()->getSimpleValueType(0).is256BitVector() &&
+ if (Op.getSimpleValueType().is512BitVector() &&
+ SubVec.getSimpleValueType().is256BitVector() &&
isa<ConstantSDNode>(Idx)) {
unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
return Insert256BitVector(Vec, SubVec, IdxVal, DAG, dl);
More information about the llvm-commits
mailing list