R600/SI: Legalize INSERT_SUBREG instructions during PostISelFolding
authorTom Stellard <thomas.stellard@amd.com>
Thu, 9 Oct 2014 18:09:15 +0000 (18:09 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 9 Oct 2014 18:09:15 +0000 (18:09 +0000)
commitd0fb5b1c116de554ee821244a7acd90d8e4c3c1c
treedeb9a32064cff906a2fb15bf02b567686d38ded4
parent81a95a816bf3a020a30597c0cd86d7ebcc58f9c0
R600/SI: Legalize INSERT_SUBREG instructions during PostISelFolding

LLVM assumes INSERT_SUBREG will always have register operands, so
we need to legalize non-register operands, like FrameIndexes, to
avoid random assertion failures.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219420 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIISelLowering.cpp
test/CodeGen/R600/insert_subreg.ll [new file with mode: 0644]