From 21343336d6c8e529b1614ac22d352d1849c0d2fe Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 5 Aug 2003 16:59:24 +0000 Subject: This method has now been changed to preserve flags for us! llvm-svn: 7603 --- llvm/lib/Target/Sparc/SparcInstrSelection.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'llvm/lib/Target/Sparc/SparcInstrSelection.cpp') diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp index 049f1414c07..e6452615dfa 100644 --- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp @@ -1367,11 +1367,8 @@ ForwardOperand(InstructionNode* treeNode, } for (unsigned i=0,numOps=minstr->getNumImplicitRefs(); igetImplicitRef(i) == unusedOp) { - minstr->setImplicitRef(i, fwdOp, - minstr->getImplicitOp(i).opIsDefOnly(), - minstr->getImplicitOp(i).opIsDefAndUse()); - } + if (minstr->getImplicitRef(i) == unusedOp) + minstr->setImplicitRef(i, fwdOp); } } } -- cgit v1.2.3