This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Remove literal constants from VOP2b src0
ClosedPublic

Authored by arsenm on Oct 6 2015, 3:24 PM.

Details

Reviewers
tstellarAMD
Summary

Because of the constant bus requirement, it is never legal to
use a literal constant for these instructions despite the encoding
allowing it.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 36670.Oct 6 2015, 3:24 PM
arsenm retitled this revision from to AMDGPU: Remove literal constants from VOP2b src0.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
tstellarAMD added inline comments.Oct 6 2015, 3:40 PM
lib/Target/AMDGPU/SIInstrInfo.td
1195

We already set Src0RC32 to the correct class here.

arsenm added inline comments.Oct 6 2015, 3:51 PM
lib/Target/AMDGPU/SIInstrInfo.td
1195

I didn't notice this. This seems to have been an accident before. I'll just add the comment to this

arsenm updated this revision to Diff 36672.Oct 6 2015, 3:53 PM

Just add comment

tstellarAMD accepted this revision.Oct 6 2015, 5:54 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Oct 6 2015, 5:54 PM
arsenm closed this revision.Oct 6 2015, 6:38 PM

r249500