diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-08-20 20:04:18 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-08-20 20:04:18 +0000 |
commit | 02b13d4d3cf1b2ef3cd5b4af16fb96057a454662 (patch) | |
tree | 29a0ffb51a618f557108f3fb7d38ac2e78d153ba /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 3455b9b8bcefeecad4954a14d0adfd32105f1af3 (diff) | |
download | bcm5719-llvm-02b13d4d3cf1b2ef3cd5b4af16fb96057a454662.tar.gz bcm5719-llvm-02b13d4d3cf1b2ef3cd5b4af16fb96057a454662.zip |
Use SDValue::getOpcode() helper instead of via SDValue::getNode()
llvm-svn: 279381
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 5c8a2947e92..fc5501622b6 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!!"); |