mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Eliminate an extra copy from R1 that Nate noticed on function calls that
have to write arguments to the stack llvm-svn: 22536
This commit is contained in:
parent
a9dac1cd7a
commit
5d02e3a15e
@ -1293,7 +1293,8 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
|
||||
MVT::ValueType DestType = N.getValueType();
|
||||
|
||||
if (Node->getOpcode() == ISD::CopyFromReg &&
|
||||
MRegisterInfo::isVirtualRegister(cast<RegSDNode>(Node)->getReg()))
|
||||
(MRegisterInfo::isVirtualRegister(cast<RegSDNode>(Node)->getReg()) ||
|
||||
cast<RegSDNode>(Node)->getReg() == PPC::R1))
|
||||
// Just use the specified register as our input.
|
||||
return cast<RegSDNode>(Node)->getReg();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user