Added perf counts for basic block splitting, and fixed up the splitting routine to do a better job.