I saw a problem about a pivoting rod online (http://dev.physicslab.org/Document.aspx?doctype=3&filename=RotaryMotion_RotationalDynamicsPivotingRods.xml), I am thinking the problem if we initially hold the rod horizontally with one end hinged on the wall without friction. When I let go, the rod rotate all the way to the vertical position (downward). If we want to consider the instant speed of the center of mass of the rod when it rotated to vertical position downward. In this case, the energy conserved since no friction in the pivot and we ignore the air resistance. So
$$G.P.E = \frac{mv^2}{2}$$
But in that webpage, it consider the angular kinetic energy instead. But in the text, it said that I should consider both linear and angular kinetic energy at center of mass for a rotational object, $K.E. = \frac{MV_{CM}^2}{2} + \frac{I_{CM}\omega^2}{2}$. It is confusing to me because when the rod vertical, the speed is pointing to the right so the speed of the center of mass is linear. So which one is correct?