Skip to content
Commit 04a46bf0 authored by Jan Vesely's avatar Jan Vesely
Browse files

amdgcn,popcount: Workaround broken llvm.ctpop intrinsic on some GCN ASICs



This is only really needed for VI+ ASICs. However, llvm would cast the value to
i32 for older asics anyway. The proper fix is in LLVM-7 (r326535).
Fixes CTS popcount on carrizo.

Reviewer: Aaron Watry <awatry@gmail.com>
Signed-off-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 327044
parent 0883c4d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment