This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Materialize frame index before add
ClosedPublic

Authored by arsenm on Nov 21 2016, 1:28 PM.

Details

Reviewers
tstellarAMD
Summary

It isn't generally safe to fold the frame index
directly into the operand since it will possibly
not be an inline immediate after it is expanded.

This surprisingly seems to produce better code, since
the FI doesn't prevent folding other immediate operands.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 78770.Nov 21 2016, 1:28 PM
arsenm retitled this revision from to AMDGPU: Materialize frame index before add.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
tstellarAMD accepted this revision.Nov 23 2016, 12:41 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Nov 23 2016, 12:41 PM
arsenm closed this revision.Nov 29 2016, 11:31 AM

r288185