diff --git a/builtins/target-nvptx.ll b/builtins/target-nvptx.ll index f2aca589..43a16987 100644 --- a/builtins/target-nvptx.ll +++ b/builtins/target-nvptx.ll @@ -813,8 +813,7 @@ define i1 @__any(<1 x i1>) nounwind readnone alwaysinline { define i1 @__all(<1 x i1>) nounwind readnone alwaysinline { %v = extractelement <1 x i1> %0, i32 0 %res0 = call i32 @__ballot_nvptx(i1 %v) - %res1 = call i32 @__ballot_nvptx(i1 true) - %cmp = icmp eq i32 %res0, %res1 + %cmp = icmp eq i32 %res0, -1 ret i1 %cmp }