This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Delete dead code
ClosedPublic

Authored by arsenm on Aug 20 2015, 11:18 PM.

Details

Reviewers
tstellarAMD
Summary

There is no context where s_mov_b64 is emitted
and could potentially be moved to the VALU.
It is currently only emitted for materializing
immediates, which can't be dependent on vector sources.

The immediate splitting is already done when selecting
constants. I'm not sure what contexts if any the register
splitting would have been used before.

Also clean up using s_mov_b64 in place of v_mov_b64_pseudo,
although this isn't required and just skips the extra step
of eliminating the copy from the SReg_64.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 32803.Aug 20 2015, 11:18 PM
arsenm retitled this revision from to AMDGPU: Delete dead code.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
tstellarAMD accepted this revision.Aug 26 2015, 1:13 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Aug 26 2015, 1:13 PM
arsenm closed this revision.Aug 26 2015, 1:50 PM

r246080