This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Disable shrink-wrapping when PC address is acquired through the link register
ClosedPublic

Authored by nemanjai on Feb 23 2018, 7:23 AM.

Details

Summary

When we need to acquire the address of the next instruction through the link register, this will always be added to the entry block. Of course, since we're clobbering the link register, we need to make sure we save it first. However, the fact that we need to do this is only apparent at PEI time (i.e. after shrink-wrapping).

This patch simply disables shrink-wrapping on functions that need to do this - there's no sense at looking at anything further in this function since we are positive that we won't be able to shrink-wrap the function.

This fixes PR33547.

Diff Detail

Repository
rL LLVM

Event Timeline

nemanjai created this revision.Feb 23 2018, 7:23 AM
This revision is now accepted and ready to land.Feb 23 2018, 12:03 PM
This revision was automatically updated to reflect the committed changes.