This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix commuting v_sub_u16
ClosedPublic

Authored by arsenm on Dec 7 2016, 4:15 PM.

Details

Summary

The correct commutable opcode was set to itself, so this
was simply swapping the operands to commute instead of also
changing the opcode to v_subrrev_u16.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 80686.Dec 7 2016, 4:15 PM
arsenm retitled this revision from to AMDGPU: Fix commuting v_sub_u16.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
nhaehnle accepted this revision.Dec 8 2016, 6:30 AM
nhaehnle added a reviewer: nhaehnle.

LGTM

This revision is now accepted and ready to land.Dec 8 2016, 6:30 AM
arsenm closed this revision.Dec 8 2016, 12:03 PM

r289093