Quentin Colombet bb206cb131 [NVPTX] Apply global var demotion to private symbols
When emitting the assembly we perform some late global variables demotion.
Prior to this patch, this optimization was only performed on variables with
the internal linkage whereas any local global variable can be demoted.

Fix that by using `hasLocalLinkage` instead of `hasInternalLinkage`.

Without this change, global variables with the `private` linkage wouldn't
be demoted.

Differential Revision: https://reviews.llvm.org/D154507
2023-08-09 14:41:01 +02:00
..
2023-07-11 14:43:35 +01:00
2023-06-28 11:57:13 -07:00
2022-12-28 21:45:51 +03:00