[PATCH] D27553: AMDGPU: Fix commuting v_sub_u16

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 16:15:59 PST 2016


arsenm created this revision.
arsenm added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng, kzhuravl.

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.


https://reviews.llvm.org/D27553

Files:
  lib/Target/AMDGPU/VOP2Instructions.td
  test/CodeGen/AMDGPU/sub.i16.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27553.80686.patch
Type: text/x-patch
Size: 8964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161208/6d4c26f8/attachment.bin>


More information about the llvm-commits mailing list