Title is not exactly correct since there still is early returns, it's just that they don't return any data.
I did a visual difference check and it seems there is 0 change.
I also diff checked the compiled code and found that it has reduced instruction/math count and a branch or two!
Unsure if performance has changed by those branch removals.
Thanks for the PR and the review, lgtm too! I'll merge this and maybe add a followup to change how LTCGI_sample works overall, but I'll make sure to not reintroduce any warnings. Much appreciated!
Title is not exactly correct since there still is early returns, it's just that they don't return any data.
I did a visual difference check and it seems there is 0 change.
I also diff checked the compiled code and found that it has reduced instruction/math count and a branch or two! Unsure if performance has changed by those branch removals.