R600: Make Export Instruction not duplicable

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179686 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vincent Lejeune 2013-04-17 15:17:39 +00:00
parent 58df169e82
commit 26ebd7aafc
2 changed files with 6 additions and 2 deletions

View File

@ -738,7 +738,9 @@ multiclass SteamOutputExportPattern<Instruction ExportInst,
4095, imm:$mask, buf3inst, 0)>;
}
let usesCustomInserter = 1 in {
// Export Instructions should not be duplicated by TailDuplication pass
// (which assumes that duplicable instruction are affected by exec mask)
let usesCustomInserter = 1, isNotDuplicable = 1 in {
class ExportSwzInst : InstR600ISA<(
outs),

View File

@ -1,6 +1,8 @@
;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
; CHECK: JUMP @4
; CHECK: JUMP @3
; CHECK: EXPORT
; CHECK-NOT: EXPORT
define void @main() #0 {
main_body: