R600/SI: Only select SALU instructions in the entry or exit block
authorTom Stellard <thomas.stellard@amd.com>
Tue, 29 Apr 2014 23:12:48 +0000 (23:12 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 29 Apr 2014 23:12:48 +0000 (23:12 +0000)
commit2a90e446c0e4110ba741166254c88e346799bc81
tree6fb2e2896a3605c9a13a9f668f1aa233ad6347e8
parent19a970b2dafdfaca4263557db69a70e072e0a130
R600/SI: Only select SALU instructions in the entry or exit block

SALU instructions ignore control flow, so it is not always safe to use
them within branches.  This is a partial solution to this problem
until we can come up with something better.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207590 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUISelDAGToDAG.cpp
lib/Target/R600/SIInstructions.td
test/CodeGen/R600/sgpr-control-flow.ll [new file with mode: 0644]