radeonsi: Set range metadata on calls to llvm.SI.tid
authorTom Stellard <thomas.stellard@amd.com>
Mon, 18 Apr 2016 18:33:43 +0000 (14:33 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 22 Apr 2016 23:48:41 +0000 (23:48 +0000)
commitd3427412a335ec64d05e09e040a2ddb2b9552563
tree1fec7031be5d238b839fa533fa0b146042945e78
parentb31422d970848c4f0925bdd83850393fa3f0ab8c
radeonsi: Set range metadata on calls to llvm.SI.tid

The range metadata tells LLVM the range of expected values for this intrinsic,
so it can do some additional optimizations on the result.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c