From 14e76108cbf8170ba6cc59a2afb5b7b71c81e67f Mon Sep 17 00:00:00 2001 From: Evghenii Date: Thu, 6 Feb 2014 14:24:50 +0100 Subject: [PATCH] optimization for _all --- builtins/target-nvptx.ll | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }