This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fold readlane/readfirstlane calls
ClosedPublic

Authored by arsenm on Jun 17 2019, 7:46 AM.

Details

Reviewers
nhaehnle
rampitec

Diff Detail

Event Timeline

arsenm created this revision.Jun 17 2019, 7:46 AM
arsenm updated this revision to Diff 205073.Jun 17 2019, 7:47 AM

Fix extra whitespace change

Good idea, but needs a fix I think.

lib/Transforms/InstCombine/InstCombineCalls.cpp
3788–3799

I believe all of these need to be guarded by being in the same basic block, since the user could be observing a read(first)lane inside a divergent loop.

arsenm updated this revision to Diff 205081.Jun 17 2019, 8:24 AM

Check parent

arsenm updated this revision to Diff 205082.Jun 17 2019, 8:25 AM

Rebased into wrong patch

This revision is now accepted and ready to land.Jun 17 2019, 9:03 AM
arsenm closed this revision.Jun 17 2019, 10:49 AM

r363587