mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 08:28:21 +02:00
gallivm: set LLVMNoUnwindAttribute on all intrinsics
RadeonSI stats: Mostly 0% difference, but Valley shows a small improvement: Application Files SGPRs VGPRs SpillSGPR SpillVGPR Code Size LDS Max Waves Waits unigine_valley 278 0.00 % -0.29 % 0.00 % 0.00 % 0.01 % 0.00 % 0.17 % 0.00 % Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
3c44629142
commit
d7b6f90684
1 changed files with 4 additions and 2 deletions
|
|
@ -145,8 +145,10 @@ lp_build_intrinsic(LLVMBuilderRef builder,
|
|||
|
||||
function = lp_declare_intrinsic(module, name, ret_type, arg_types, num_args);
|
||||
|
||||
if (attr)
|
||||
LLVMAddFunctionAttr(function, attr);
|
||||
/* NoUnwind indicates that the intrinsic never raises a C++ exception.
|
||||
* Set it for all intrinsics.
|
||||
*/
|
||||
LLVMAddFunctionAttr(function, attr | LLVMNoUnwindAttribute);
|
||||
|
||||
if (gallivm_debug & GALLIVM_DEBUG_IR) {
|
||||
lp_debug_dump_value(function);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue