From 1f13a236bf7a6cef2aa356282f6d335ce0f124da Mon Sep 17 00:00:00 2001 From: Evghenii Date: Wed, 13 Nov 2013 13:03:26 +0100 Subject: [PATCH] small tuning --- builtins/target-nvptx64.ll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtins/target-nvptx64.ll b/builtins/target-nvptx64.ll index 2484eb1e..9714b0b2 100644 --- a/builtins/target-nvptx64.ll +++ b/builtins/target-nvptx64.ll @@ -149,7 +149,8 @@ entry: ;; nbx = (%ntx-1)/(blocksize/warpsize) + 1 for blocksize=128 & warpsize=32 %ntxm1 = add nsw i32 %ntx, -1 - %ntxm1d4 = sdiv i32 %ntxm1, 4 +;; %ntxm1d4 = sdiv i32 %ntxm1, 4 + %ntxm1d4 = ashr i32 %ntxm1, 2 %nbx = add nsw i32 %ntxm1d4, 1 %call = tail call i32 @__tid_x() %call1 = tail call i32 @__warpsize()