This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Preserve metadata when widening loads
ClosedPublic

Authored by arsenm on May 31 2018, 3:31 AM.

Details

Reviewers
rampitec
kzhuravl

Diff Detail

Event Timeline

arsenm created this revision.May 31 2018, 3:31 AM

I'm not entirely sure it's correct to preserve the high part of the range, since nothing is guaranteed about the high bits

arsenm planned changes to this revision.May 31 2018, 3:55 AM

Apparently !range allows multiple disjoint segments, so this needs more work

arsenm updated this revision to Diff 149260.May 31 2018, 4:24 AM

Don't use high range

rampitec added inline comments.May 31 2018, 10:20 AM
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
489

Range is [a, b). I.e. upper bound is not included in the range. But range can wrap around so 0 should work.
At the same time you will need to check that lower bound is not zero then because it is required that a != b.

arsenm updated this revision to Diff 149411.Jun 1 2018, 2:09 AM

Fix upper bound and drop if 0

This revision is now accepted and ready to land.Jun 1 2018, 12:36 PM
arsenm closed this revision.Jun 5 2018, 12:57 PM

r334045