OSDN Git Service

AMDGPU: Fix crash on immediate operand
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 21 Sep 2017 00:45:59 +0000 (00:45 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 21 Sep 2017 00:45:59 +0000 (00:45 +0000)
commitec61af4bcc20ba5dccff7c354b761232febbcb13
tree8fa9ac68a89fca93dadbd19edf51f8c6c1748aec
parent1e4a12522612e29dc0d7e3597f6455da19e7fb8b
AMDGPU: Fix crash on immediate operand

We can have a v_mac with an immediate src0.
We can still fold if it's an inline immediate,
otherwise it already uses the constant bus.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313852 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstrInfo.cpp
test/CodeGen/AMDGPU/twoaddr-mad.mir