cleanup GETFD
authorDuraid Madina <duraid@octopus.com.au>
Wed, 11 Jan 2006 03:50:40 +0000 (03:50 +0000)
committerDuraid Madina <duraid@octopus.com.au>
Wed, 11 Jan 2006 03:50:40 +0000 (03:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25198 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/IA64/IA64ISelDAGToDAG.cpp

index 09ad629640c47b4d0a333708c6f4e8051f5473d8..8c6ae0fae349470009bc3b1ef0d1edf04c6aa5a7 100644 (file)
@@ -411,10 +411,9 @@ SDOperand IA64DAGToDAGISel::Select(SDOperand Op) {
   
   case IA64ISD::GETFD: {
     SDOperand Input = Select(N->getOperand(0));
-    SDOperand Result = CurDAG->getTargetNode(IA64::GETFD, MVT::i64, MVT::Flag, Input);
-    CodeGenMap[Op.getValue(0)] = Result;
-    CodeGenMap[Op.getValue(1)] = Result.getValue(1);
-    return Result.getValue(Op.ResNo);
+    SDOperand Result = CurDAG->getTargetNode(IA64::GETFD, MVT::i64, Input);
+    CodeGenMap[Op] = Result;
+    return Result;
   } 
   
   case ISD::CALL: