nir: Update the comment to call nir_remove_non_entrypoints directly
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23902>
This commit is contained in:
@@ -246,11 +246,7 @@ inline_function_impl(nir_function_impl *impl, struct set *inlined)
|
||||
*
|
||||
* In the Intel Vulkan driver this looks like this:
|
||||
*
|
||||
* foreach_list_typed_safe(nir_function, func, node, &nir->functions) {
|
||||
* if (func != entry_point)
|
||||
* exec_node_remove(&func->node);
|
||||
* }
|
||||
* assert(exec_list_length(&nir->functions) == 1);
|
||||
* nir_remove_non_entrypoints(nir);
|
||||
*
|
||||
* While nir_inline_functions does get rid of all call instructions, it
|
||||
* doesn't get rid of any functions because it doesn't know what the "root
|
||||
|
Reference in New Issue
Block a user