This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Use inbounds when calculating workitem offset
ClosedPublic

Authored by arsenm on Feb 1 2016, 9:48 AM.

Details

Reviewers
tstellarAMD
Summary

When promoting allocas to LDS, we know we are indexing
into a specific area just created, and the calculation
will also never overflow.

Also emit some of the muls as nsw nuw, because instcombine
infers this already from the range metadata. I think
putting this on the other adds and muls might be OK too,
but I'm not 100% sure.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 46548.Feb 1 2016, 9:48 AM
arsenm retitled this revision from to AMDGPU: Use inbounds when calculating workitem offset.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
arsenm updated this revision to Diff 46549.Feb 1 2016, 9:49 AM

Squash with patch that changes vector use to array

tstellarAMD accepted this revision.Feb 2 2016, 8:36 AM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Feb 2 2016, 8:36 AM
arsenm closed this revision.Feb 2 2016, 11:23 AM

r259545