llvm.org GIT mirror llvm / d248652
When opcodes like ADD were split into reg. and immed. versions (ADDi and ADDr), this code wasn't fixed correctly so it missed copy operations that used ADDi. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9318 91177308-0d34-0410-b5e6-96231b3b80d8 Vikram S. Adve 15 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6262 return (/* both operands are allocated to the same register */
6363 MI->getOperand(0).getAllocatedRegNum() ==
6464 MI->getOperand(1).getAllocatedRegNum());
65 } else if (MI->getOpCode() == V9::ADDr || MI->getOpCode() == V9::ORr) {
65 } else if (MI->getOpCode() == V9::ADDr || MI->getOpCode() == V9::ORr ||
66 MI->getOpCode() == V9::ADDi || MI->getOpCode() == V9::ORi) {
6667 unsigned srcWithDestReg;
6768
6869 for (srcWithDestReg = 0; srcWithDestReg < 2; ++srcWithDestReg)