summaryrefslogtreecommitdiff
path: root/test/CodeGen/R600/sgpr-copy-duplicate-operand.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-04-29 23:12:53 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-04-29 23:12:53 +0000
commit40e455d992c4e95ede50c7de32ac1a312a674276 (patch)
tree2ff1cbdd313d1891e5639f18680cabc7e40b4ced /test/CodeGen/R600/sgpr-copy-duplicate-operand.ll
parent2a90e446c0e4110ba741166254c88e346799bc81 (diff)
downloadllvm-40e455d992c4e95ede50c7de32ac1a312a674276.tar.gz
llvm-40e455d992c4e95ede50c7de32ac1a312a674276.tar.bz2
llvm-40e455d992c4e95ede50c7de32ac1a312a674276.tar.xz
R600/SI: Custom lower SI_IF and SI_ELSE to avoid machine verifier errors
SI_IF and SI_ELSE are terminators which also produce a value. For these instructions ISel always inserts a COPY to move their value to another basic block. This COPY ends up between SI_(IF|ELSE) and the S_BRANCH* instruction at the end of the block. This breaks MachineBasicBlock::getFirstTerminator() and also the machine verifier which assumes that terminators are grouped together at the end of blocks. To solve this we coalesce the copy away right after ISel to make sure there are no instructions in between terminators at the end of blocks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/sgpr-copy-duplicate-operand.ll')
-rw-r--r--test/CodeGen/R600/sgpr-copy-duplicate-operand.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/R600/sgpr-copy-duplicate-operand.ll b/test/CodeGen/R600/sgpr-copy-duplicate-operand.ll
index d74161bf6d..9d8a623125 100644
--- a/test/CodeGen/R600/sgpr-copy-duplicate-operand.ll
+++ b/test/CodeGen/R600/sgpr-copy-duplicate-operand.ll
@@ -1,4 +1,4 @@
-; RUN: llc -march=r600 -mcpu=SI < %s | FileCheck -check-prefix=SI %s
+; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs< %s | FileCheck -check-prefix=SI %s
; Copy VGPR -> SGPR used twice as an instruction operand, which is then
; used in an REG_SEQUENCE that also needs to be handled.