This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Handle or in multi-use shl ptr combi
ClosedPublic

Authored by arsenm on Nov 6 2017, 7:23 AM.

Details

Reviewers
rampitec

Diff Detail

Event Timeline

arsenm created this revision.Nov 6 2017, 7:23 AM
rampitec added inline comments.Nov 6 2017, 10:28 AM
lib/Target/AMDGPU/SIISelLowering.cpp
5218–5219
N0->hasOneUse() is more readable in my view.
arsenm added inline comments.Nov 13 2017, 11:12 PM
lib/Target/AMDGPU/SIISelLowering.cpp
5218–5219

I'm not sure what you mean, that would remove the early return

rampitec added inline comments.Nov 14 2017, 9:37 AM
lib/Target/AMDGPU/SIISelLowering.cpp
5218–5219

Hm... This changes original logic and contradicts the comment above. Before we did early return if there is only one use, just as written in the comment. Now you only do the transformation if there is one use.

arsenm updated this revision to Diff 122921.Nov 14 2017, 2:55 PM

Fix condition

This revision is now accepted and ready to land.Nov 14 2017, 2:59 PM
arsenm closed this revision.Nov 14 2017, 3:46 PM

r318223