What is the difference between these two functions in terms of code execution. The result is the same, but will the compiler optimize both to the same outputted assembly?
void some_func()
{
if (!something)
return;
//rest of code
}
void other_func()
{
if (something) {
//rest of code
}
}