summaryrefslogtreecommitdiff
path: root/tools/llvm-dis
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 /tools/llvm-dis
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 'tools/llvm-dis')
0 files changed, 0 insertions, 0 deletions