An arrangement is provided for improving the performance of a dynamic
compiler, specifically for dynamically optimizing integer division
operations. When a compiler receives an integer division code at runtime,
the compiler dynamically profiles a divisor of the division code. The
integer division code is then optimized based on the characteristics of
the divisor, which are determined at runtime.