This assumes that the compiler cannot optimize the calculation of your hashed value, which is not necessarily the case if you are not careful.