summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorRoman Levenstein <romix.llvm@googlemail.com>2008-04-16 16:15:27 +0000
committerRoman Levenstein <romix.llvm@googlemail.com>2008-04-16 16:15:27 +0000
commita3ee1a38a335828b44ec2d329a846cef292874f7 (patch)
treed67d074941f2a6c1a841360dd1260384de54a1d3 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parentbd2613d3823b8aeae5fdeba29591c04cb1936738 (diff)
downloadbcm5719-llvm-a3ee1a38a335828b44ec2d329a846cef292874f7.tar.gz
bcm5719-llvm-a3ee1a38a335828b44ec2d329a846cef292874f7.zip
Ongoing work on improving the instruction selection infrastructure:
Rename SDOperandImpl back to SDOperand. Introduce the SDUse class that represents a use of the SDNode referred by an SDOperand. Now it is more similar to Use/Value classes. Patch is approved by Dan Gohman. llvm-svn: 49795
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 4eccb815e3b..6ac549b9cf3 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -3880,7 +3880,8 @@ SDOperand DAGCombiner::visitFP_EXTEND(SDNode *N) {
MVT::ValueType VT = N->getValueType(0);
// If this is fp_round(fpextend), don't fold it, allow ourselves to be folded.
- if (N->hasOneUse() && (N->use_begin())->getOpcode() == ISD::FP_ROUND)
+ if (N->hasOneUse() &&
+ N->use_begin()->getSDOperand().getOpcode() == ISD::FP_ROUND)
return SDOperand();
// fold (fp_extend c1fp) -> c1fp
OpenPOWER on IntegriCloud