Methods and apparatus for reducing a control flow graph are disclosed. A
disclosed method comprises: creating a points-to set associated with a
function in a computer program; determining if a control flow edge
between: (1) a call-site associated with a restore and return instruction
and (2) a successor block following the call-site is removable from a
control flow graph representing the computer program; and removing the
control flow edge if it is determined that the control flow edge is
removable.