Skip to content
Commit 676f5719 authored by Tom Stellard's avatar Tom Stellard
Browse files

R600: optimize the UDIVREM 64 algorithm



This is a squash of several optimization commits:
 - calculate DIV_Lo and DIV_Hi separately
 - use BFE_U32 if we are operating on 32bit values
 - use precomputed constants instead of shifting in UDVIREM
 - skip the first 32 iterations of udivrem

v2: Check whether BFE is supported before using it

Patch by: Jan Vesely

Signed-off-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
llvm-svn: 207589
parent bcd318fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment