You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
24
external/llvm/test/CodeGen/NVPTX/speculative-execution-divergent-target.ll
vendored
Normal file
24
external/llvm/test/CodeGen/NVPTX/speculative-execution-divergent-target.ll
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
; Checks that speculative-execution only runs on divergent targets, if you pass
|
||||
; -spec-exec-only-if-divergent-target.
|
||||
|
||||
; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -speculative-execution | \
|
||||
; RUN: FileCheck --check-prefix=ON %s
|
||||
; RUN: opt < %s -S -mtriple=nvptx-nvidia-cuda -speculative-execution \
|
||||
; RUN: -spec-exec-only-if-divergent-target | \
|
||||
; RUN: FileCheck --check-prefix=ON %s
|
||||
; RUN: opt < %s -S -speculative-execution -spec-exec-only-if-divergent-target | \
|
||||
; RUN: FileCheck --check-prefix=OFF %s
|
||||
|
||||
; Hoist in if-then pattern.
|
||||
define void @f() {
|
||||
; ON: %x = add i32 2, 3
|
||||
; ON: br i1 true
|
||||
; OFF: br i1 true
|
||||
; OFF: %x = add i32 2, 3
|
||||
br i1 true, label %a, label %b
|
||||
a:
|
||||
%x = add i32 2, 3
|
||||
br label %b
|
||||
b:
|
||||
ret void
|
||||
}
|
Reference in New Issue
Block a user