brintos

brintos / llvm-project-archived public Read only

0
0
Text · 464 B · 9c893ac Raw
17 lines · plain
1; RUN: opt -mtriple amdgcn-- -passes='print<uniformity>' -disable-output %s 2>&1 | FileCheck %s2 3; CHECK: DIVERGENT: %divergentval4; CHECK-NOT: DIVERGENT: %uniformval5; CHECK: %uniformval6define void @test() {7  %divergentval = call i32 @normalfunc()8  %uniformval = call i32 @nodivergencesourcefunc()9  ret void10}11 12declare i32 @normalfunc() #013declare i32 @nodivergencesourcefunc() #114 15attributes #0 = { nounwind }16attributes #1 = { nounwind nodivergencesource }17