aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2005-12-01 00:41:50 +0000
committerEvan Cheng <evan.cheng@apple.com>2005-12-01 00:41:50 +0000
commitc121e33e35b2e7292e6d99d8db91f73b84269e36 (patch)
tree4d167915e56f1dcd20f051bd7775b7d4cd6817d8 /lib
parent66a48bbc3565b40ea0e6f2d58cf5e3a8e64802ef (diff)
downloadexternal_llvm-c121e33e35b2e7292e6d99d8db91f73b84269e36.zip
external_llvm-c121e33e35b2e7292e6d99d8db91f73b84269e36.tar.gz
external_llvm-c121e33e35b2e7292e6d99d8db91f73b84269e36.tar.bz2
Use a getCopyToReg() variant to generate a flaggy CopyToReg node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/PowerPC/PPCISelDAGToDAG.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 47338b4..b47808d 100644
--- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -720,14 +720,8 @@ SDOperand PPCDAGToDAGISel::SelectSETCC(SDOperand Op) {
// Force the ccreg into CR7.
SDOperand CR7Reg = CurDAG->getRegister(PPC::CR7, MVT::i32);
- std::vector<MVT::ValueType> VTs;
- VTs.push_back(MVT::Other);
- VTs.push_back(MVT::Flag); // NONSTANDARD CopyToReg node: defines a flag
- std::vector<SDOperand> Ops;
- Ops.push_back(CurDAG->getEntryNode());
- Ops.push_back(CR7Reg);
- Ops.push_back(CCReg);
- CCReg = CurDAG->getNode(ISD::CopyToReg, VTs, Ops).getValue(1);
+ SDOperand InFlag; // Null incoming flag value.
+ CCReg = CurDAG->getCopyToReg(CurDAG->getEntryNode(), CR7Reg, CCReg, InFlag);
if (TLI.getTargetMachine().getSubtarget<PPCSubtarget>().isGigaProcessor())
IntCR = CurDAG->getTargetNode(PPC::MFOCRF, MVT::i32, CR7Reg, CCReg);