Optimize try-catch edge generation for large methods