This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Handle sub of constant for DS offset folding
ClosedPublic

Authored by arsenm on Aug 24 2015, 8:45 AM.

Details

Reviewers
tstellarAMD
Summary

sub C, x - > add (sub 0, v), C for DS offsets.

This is mostly to fix regressions that show up when SeparateConstOffsetFromGEP is enabled.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 32961.Aug 24 2015, 8:45 AM
arsenm retitled this revision from to AMDGPU: Handle sub of constant for DS offset folding.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
tstellarAMD accepted this revision.Sep 8 2015, 12:07 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Sep 8 2015, 12:07 PM
arsenm closed this revision.Sep 8 2015, 12:36 PM

r247054 with fixes for VOP2b changes