Create a DAG mutation that clusters stores for better memory locality.

Synopsis

Declared in <llvm/CodeGen/MachineScheduler.h>

std::unique_ptr<ScheduleDAGMutation>
createStoreClusterDAGMutation(
    TargetInstrInfo const* TII,
    TargetRegisterInfo const* TRI,
    bool ReorderWhileClustering = false);

Description

If ReorderWhileClustering is set to true, no attempt will be made to reduce reordering due to store clustering.

Return Value

A unique pointer to the store‐cluster DAG mutation.

Parameters

Name

Description

TII

Target instruction info used to recognize stores.

TRI

Target register info used while rewriting edges.

ReorderWhileClustering

Allow freer reordering while clustering.

Created with MrDocs