Skip to content

Commit

Permalink
[PowerPC][AIX] Enable Shrinkwrapping on 32 and 64 bit AIX.
Browse files Browse the repository at this point in the history
Summary:
Currently Shrinkwrap is not enabled on AIX.
This patch enables shrink wrap on 32 and 64 bit AIX, and 64 bit ELF.

Reviewed By: sfertile, nemanjai

Differential Revision: https://reviews.llvm.org/D95094
  • Loading branch information
Sidharth Baveja committed Feb 17, 2021
1 parent 7048cb5 commit cb28768
Show file tree
Hide file tree
Showing 5 changed files with 199 additions and 154 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2545,6 +2545,5 @@ unsigned PPCFrameLowering::getBasePointerSaveOffset() const {
bool PPCFrameLowering::enableShrinkWrapping(const MachineFunction &MF) const {
if (MF.getInfo<PPCFunctionInfo>()->shrinkWrapDisabled())
return false;
return (MF.getSubtarget<PPCSubtarget>().isSVR4ABI() &&
MF.getSubtarget<PPCSubtarget>().isPPC64());
return !MF.getSubtarget<PPCSubtarget>().is32BitELFABI();
}
Loading

0 comments on commit cb28768

Please sign in to comment.