if ( a == b )
  return true;
else
  retrun false;

と

if ( a == b )
  return true;
retrun false;

は、コンパイラで最適化されちゃうような差ですか?