Convert 2 more uses to shouldAssumeDSOLocal(). NFC.

llvm-svn: 274009
This commit is contained in:
Rafael Espindola 2016-06-28 12:49:12 +00:00
parent 2d53158012
commit 248cfb9752
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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,