This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Select i16 instructions to VOP3 forms
ClosedPublic

Authored by arsenm on Dec 5 2016, 11:37 AM.

Details

Reviewers
tstellarAMD
Summary

These were selecting directly to the VOP2 form instead
of VOP3 like the i32 instructions. Fixes regressions in
future commits where an immediate isn't folded because it was
initially used for the second operand.

Because uniform 16-bit operations are promoted to i32, it's
difficult to get a simple testcase where this matters.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 80301.Dec 5 2016, 11:37 AM
arsenm retitled this revision from to AMDGPU: Select i16 instructions to VOP3 forms.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
tstellarAMD accepted this revision.Dec 5 2016, 5:55 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Dec 5 2016, 5:55 PM
arsenm closed this revision.Dec 8 2016, 10:29 PM

r289189