R600/SI: Fix asam errors in SIFoldOperands
authorTom Stellard <thomas.stellard@amd.com>
Tue, 17 Feb 2015 20:11:54 +0000 (20:11 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 17 Feb 2015 20:11:54 +0000 (20:11 +0000)
commitec5b9ab43352d6fcfa54d63ad76ee661aa21dca6
tree01e664b7ecc31aaff7c7fcb90521582ba438644e
parent544843cee165f4f660f5695a1750b466cf4fff70
R600/SI: Fix asam errors in SIFoldOperands

We were trying to fold into implicit uses, which led to out of bounds
access of the MCInstrDesc::OpInfo arrray.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229533 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIFoldOperands.cpp
test/CodeGen/R600/fdiv.f64.ll
test/CodeGen/R600/llvm.AMDGPU.div_fmas.ll