From: Simon Pilgrim Date: Sat, 20 Aug 2016 20:04:18 +0000 (+0000) Subject: Use SDValue::getOpcode() helper instead of via SDValue::getNode() X-Git-Tag: llvmorg-4.0.0-rc1~11816 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02b13d4d3cf1b2ef3cd5b4af16fb96057a454662;p=platform%2Fupstream%2Fllvm.git Use SDValue::getOpcode() helper instead of via SDValue::getNode() llvm-svn: 279381 --- diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 5c8a294..fc55016 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1324,7 +1324,7 @@ void DAGCombiner::Run(CombineLevel AtLevel) { continue; assert(N->getOpcode() != ISD::DELETED_NODE && - RV.getNode()->getOpcode() != ISD::DELETED_NODE && + RV.getOpcode() != ISD::DELETED_NODE && "Node was deleted but visit returned new node!"); DEBUG(dbgs() << " ... into: "; @@ -10733,7 +10733,7 @@ bool DAGCombiner::SliceUpLoad(SDNode *N) { LSIt != LSItEnd; ++LSIt) { SDValue SliceInst = LSIt->loadSlice(); CombineTo(LSIt->Inst, SliceInst, true); - if (SliceInst.getNode()->getOpcode() != ISD::LOAD) + if (SliceInst.getOpcode() != ISD::LOAD) SliceInst = SliceInst.getOperand(0); assert(SliceInst->getOpcode() == ISD::LOAD && "It takes more than a zext to get to the loaded slice!!");