This is an archive of the discontinued LLVM Phabricator instance.

[PPC32] fix stack size allocated for float point argument
ClosedPublic

Authored by shchenz on Jul 12 2022, 4:50 AM.

Details

Summary

This is for https://github.com/llvm/llvm-project/issues/56469

For now, we allocate 8 bytes for float type arguments on PPC32. Actually we should use 4 for PPC32. Even though float point value will be converted to double precision in the registers, but in the memory, it is still 4 bytes.

I can observe same behavior for PPC32 AIX. Only 4 bytes allocated for float type.

Diff Detail

Event Timeline

shchenz created this revision.Jul 12 2022, 4:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2022, 4:50 AM
shchenz requested review of this revision.Jul 12 2022, 4:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2022, 4:50 AM
shchenz edited the summary of this revision. (Show Details)Jul 12 2022, 4:52 AM

Thank you. This diff fixed the pass.c from my bug report. To apply the diff, I needed to remove the pr56469.ll part, because I don't have that file.

Thank you. This diff fixed the pass.c from my bug report. To apply the diff, I needed to remove the pr56469.ll part, because I don't have that file.

Right. pr56469.ll is still on my local branch. I just want to show the diff caused by this patch for better review.

gentle ping.

nemanjai accepted this revision.Aug 4 2022, 2:13 AM

Thank you. This diff fixed the pass.c from my bug report. To apply the diff, I needed to remove the pr56469.ll part, because I don't have that file.

Right. pr56469.ll is still on my local branch. I just want to show the diff caused by this patch for better review.

Normally, you should pre-commit a test like this so that any developer can apply the patch cleanly to ToT.

Nonetheless, LGTM.

This revision is now accepted and ready to land.Aug 4 2022, 2:13 AM
This revision was landed with ongoing or failed builds.Aug 6 2022, 5:50 AM
This revision was automatically updated to reflect the committed changes.