radeon/llvm: Optimize radeon_llvm_strip_unused_kernels()
authorTom Stellard <thomas.stellard@amd.com>
Thu, 7 Mar 2013 21:51:12 +0000 (16:51 -0500)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 13 Mar 2013 16:01:31 +0000 (16:01 +0000)
commit3958c104c63d6675fd3e938ddff6efcfb1d67cde
tree92e1d9c51174adce2a7a59af5c4f74c64300f73b
parent2ace79dce5b6df453a903eb1ab51b688e0c00dd6
radeon/llvm: Optimize radeon_llvm_strip_unused_kernels()

Just delete unused kernels rather than marking them as internal and
running the GlobalDCE pass.

Also implement this function in C and inline it into
radeon_llvm_get_kernel_module()
src/gallium/drivers/radeon/radeon_llvm_util.cpp
src/gallium/drivers/radeon/radeon_llvm_util.h