mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Disable my little CopyToReg argument hack with fast-isel. rdar://problem/9413587 .
llvm-svn: 131156
This commit is contained in:
parent
17ae92b2d8
commit
aecbcc0c8f
@ -6440,10 +6440,11 @@ void SelectionDAGISel::LowerArguments(const BasicBlock *LLVMBB) {
|
||||
|
||||
// If this argument is live outside of the entry block, insert a copy from
|
||||
// wherever we got it to the vreg that other BB's will reference it as.
|
||||
if (Res.getOpcode() == ISD::CopyFromReg) {
|
||||
if (!EnableFastISel && Res.getOpcode() == ISD::CopyFromReg) {
|
||||
// If we can, though, try to skip creating an unnecessary vreg.
|
||||
// FIXME: This isn't very clean... it would be nice to make this more
|
||||
// general.
|
||||
// general. It's also subtly incompatible with the hacks FastISel
|
||||
// uses with vregs.
|
||||
unsigned Reg = cast<RegisterSDNode>(Res.getOperand(1))->getReg();
|
||||
if (TargetRegisterInfo::isVirtualRegister(Reg)) {
|
||||
FuncInfo->ValueMap[I] = Reg;
|
||||
|
Loading…
Reference in New Issue
Block a user