This is an archive of the discontinued LLVM Phabricator instance.

[Power PC] fix register alignment for long double type (soft float)
ClosedPublic

Authored by spetrovic on Mar 10 2016, 3:27 AM.

Details

Summary

This patch fixes register alignment for long double type in soft float mode. Before this patch alignment was 8 and this patch changes it to 4.

Diff Detail

Repository
rL LLVM

Event Timeline

spetrovic updated this revision to Diff 50248.Mar 10 2016, 3:27 AM
spetrovic retitled this revision from to [Power PC] fix register alignment for long double type (soft float).
spetrovic updated this object.
spetrovic added reviewers: hfinkel, petarj.
spetrovic set the repository for this revision to rL LLVM.
spetrovic added subscribers: llvm-commits, rankov, ivanbaev.
hfinkel accepted this revision.Apr 26 2016, 9:57 AM
hfinkel edited edge metadata.

A few minor comments. Otherwise, LGTM.

lib/Target/PowerPC/PPCCCState.cpp
19 ↗(On Diff #50248)

Use a range-based for loop.

29 ↗(On Diff #50248)

Use a range-based for loop.

lib/Target/PowerPC/PPCISelLowering.cpp
4584 ↗(On Diff #50248)

Please retain the existing blank line, either before or after this call.

This revision is now accepted and ready to land.Apr 26 2016, 9:57 AM
spetrovic updated this revision to Diff 55387.Apr 28 2016, 2:40 AM
spetrovic edited edge metadata.

Comments addressed.

This revision was automatically updated to reflect the committed changes.
spetrovic marked 3 inline comments as done.