# qopt-ra-region-strategy, Qopt-ra-region-strategy

Selects the method that the register allocator uses to partition each routine into regions. This feature is only available for ifort.

## Syntax

Linux: | -qopt-ra-region-strategy[=keyword]

macOS: | -qopt-ra-region-strategy[=keyword]

Windows: | /Qopt-ra-region-strategy[:keyword]

## Arguments

keyword | Is the method used for partitioning. Possible values are:
routine | Creates a single region for each routine.
block | Partitions each routine into one region per basic block.
trace | Partitions each routine into one region per trace.
loop | Partitions each routine into one region per loop.
default | The compiler determines which method is used for partitioning.

## Default

-qopt-ra-region-strategy=default or /Qopt-ra-region-strategy:default | The compiler determines which method is used for partitioning. This is also the default if keyword is not specified.

## Description

This option selects the method that the register allocator uses to partition each routine into regions.

When setting default is in effect, the compiler attempts to optimize the tradeoff between compile-time performance and generated code performance.

This option is only relevant when optimizations are enabled (option O1 or higher).

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Advanced Optimization Options

## See Also

O compiler option