added a pass to optimize shadow stack function calls.