AMDGPU/GlobalISel: Try to select VOP3 form of add
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 16:27:32 +0000 (16:27 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 16:27:32 +0000 (16:27 +0000)
commitd810ff2588894283db158d42be438f1fc14192d2
tree6a108fa88be8ff433d2018f007690e340d92a514
parente3e38cce4ab77db3f1c4718a3a7417a8655d8498
AMDGPU/GlobalISel: Try to select VOP3 form of add

There are several things broken, but at least emit the right thing for
gfx9.

The import of the pattern with the unused carry out seems to not
work. Needs a special class for clamp, because OperandWithDefaultOps
doesn't really work.

llvm-svn: 364804
llvm/lib/Target/AMDGPU/AMDGPUGISel.td
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-add.mir