Is there a way to see the native code produced by theJITter for given C# / CIL?
问题 In a comment on this answer (which suggests using bit-shift operators over integer multiplication / division, for performance), I queried whether this would actually be faster. In the back of my mind is an idea that at some level, something will be clever enough to work out that >> 1 and / 2 are the same operation. However, I'm now wondering if this is in fact true, and if it is, at what level it occurs. A test program produces the following comparative CIL (with optimize on) for two methods