forked from OSchip/llvm-project
Convert 2 more uses to shouldAssumeDSOLocal(). NFC.
llvm-svn: 274009
This commit is contained in:
parent
2d53158012
commit
248cfb9752
|
@ -76,9 +76,7 @@ static unsigned computeBasePointerSaveOffset(const PPCSubtarget &STI) {
|
|||
// SVR4 ABI: First slot in the general register save area.
|
||||
return STI.isPPC64()
|
||||
? -16U
|
||||
: (STI.getTargetMachine().getRelocationModel() == Reloc::PIC_)
|
||||
? -12U
|
||||
: -8U;
|
||||
: STI.getTargetMachine().isPositionIndependent() ? -12U : -8U;
|
||||
}
|
||||
|
||||
PPCFrameLowering::PPCFrameLowering(const PPCSubtarget &STI)
|
||||
|
|
|
@ -402,7 +402,9 @@ void PPCPassConfig::addPreRegAlloc() {
|
|||
insertPass(VSXFMAMutateEarly ? &RegisterCoalescerID : &MachineSchedulerID,
|
||||
&PPCVSXFMAMutateID);
|
||||
}
|
||||
if (getPPCTargetMachine().getRelocationModel() == Reloc::PIC_) {
|
||||
|
||||
// FIXME: We probably don't need to run these for -fPIE.
|
||||
if (getPPCTargetMachine().isPositionIndependent()) {
|
||||
// FIXME: LiveVariables should not be necessary here!
|
||||
// PPCTLSDYnamicCallPass uses LiveIntervals which previously dependet on
|
||||
// LiveVariables. This (unnecessary) dependency has been removed now,
|
||||
|
|
Loading…
Reference in New Issue