mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-05 10:57:32 +00:00
Do not reserve $gp as a dedicated global base register if the target ABI is not O32.
llvm-svn: 151614
This commit is contained in:
parent
2b1f3fbf7e
commit
247d834415
@ -126,7 +126,8 @@ void MipsDAGToDAGISel::InitGlobalBaseReg(MachineFunction &MF) {
|
||||
unsigned V0, V1, GlobalBaseReg = MipsFI->getGlobalBaseReg();
|
||||
bool FixGlobalBaseReg = MipsFI->globalBaseRegFixed();
|
||||
|
||||
if (FixGlobalBaseReg) // $gp is the global base register.
|
||||
if (Subtarget.isABI_O32() && FixGlobalBaseReg)
|
||||
// $gp is the global base register.
|
||||
V0 = V1 = GlobalBaseReg;
|
||||
else {
|
||||
const TargetRegisterClass *RC;
|
||||
|
Loading…
x
Reference in New Issue
Block a user