[llvm] r279381 - Use SDValue::getOpcode() helper instead of via SDValue::getNode()
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 20 13:04:19 PDT 2016
Author: rksimon
Date: Sat Aug 20 15:04:18 2016
New Revision: 279381
URL: http://llvm.org/viewvc/llvm-project?rev=279381&view=rev
Log:
Use SDValue::getOpcode() helper instead of via SDValue::getNode()
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=279381&r1=279380&r2=279381&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Sat Aug 20 15:04:18 2016
@@ -1324,7 +1324,7 @@ void DAGCombiner::Run(CombineLevel AtLev
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!!");
More information about the llvm-commits
mailing list