> That doesn't sound enough, unless there is already code out there > that respects this count. 1000 at 4 bytes per instruction is only > 4k. More that small enough for the rest of the compiler to think > that it could jump around such blocks cheaply. > > I think a limit of 1M or more might be more appropriate.
I got an overflow for 6.4M, so 1M would be dangerously near that. 100k perhaps ? This was not for jump shortening, but the inliner heuristics. In the worst case we could separate the two, would be a larger patch though. -Andi