llvm::createLoadClusterDAGMutation

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

Synopsis

Declared in <llvm/CodeGen/MachineScheduler.h>

std::unique_ptr<ScheduleDAGMutation>
createLoadClusterDAGMutation(
    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 load-cluster DAG mutation.

Parameters

NameDescription
TIITarget instruction info used to recognize loads.
TRITarget register info used while rewriting edges.
ReorderWhileClusteringAllow freer reordering while clustering.