You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use the `invoke_tailcall_if` macro to conditionally
perform a tail call or inline the same function based on configuration.
This macro will only work with compile time constants. So since we are
preparing to move to load time configuration, we need to replace these
macros with regular if-else statements.
At present all conditionals are still compile time constants, so the
result should be the same. We simply rely on the compilers constant
propagation to optimize away the dead branches. The big difference will
be when conditionals are migrated to load time configuration.
We already have unused tail call pruning based on load time
configuration in place, so after this we should just be able to migrate
the conditionals to load time configuration one by one.
Signed-off-by: Dylan Reimerink <dylan.reimerink@isovalent.com>
0 commit comments