RET_FLAG has an optional input flag, but it does not produce a flag result.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 16 Aug 2006 07:28:58 +0000 (07:28 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 16 Aug 2006 07:28:58 +0000 (07:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29725 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/IA64/IA64ISelLowering.cpp

index d4bc5d0ce2b7b5cf64981785d8d2e92a3f95b1bd..3693d858908278c3489b5347196df69fc2e95890 100644 (file)
@@ -573,14 +573,8 @@ LowerOperation(SDOperand Op, SelectionDAG &DAG) {
                               SDOperand());
       AR_PFSVal = DAG.getCopyToReg(Copy.getValue(0), IA64::AR_PFS, AR_PFSVal,
                                    Copy.getValue(1));
-      std::vector<MVT::ValueType> NodeTys;
-      std::vector<SDOperand> RetOperands;
-      NodeTys.push_back(MVT::Other);
-      NodeTys.push_back(MVT::Flag);
-      RetOperands.push_back(AR_PFSVal);
-      RetOperands.push_back(AR_PFSVal.getValue(1));
-      return DAG.getNode(IA64ISD::RET_FLAG, NodeTys,
-                         &RetOperands[0], RetOperands.size());
+      return DAG.getNode(IA64ISD::RET_FLAG, MVT::Other,
+                         AR_PFSVal, AR_PFSVal.getValue(1));
     }
     }
     return SDOperand();