Create a DAG mutation that clusters loads for better memory locality.
Declared in <llvm/CodeGen/MachineScheduler.h>
std::unique_ptr<ScheduleDAGMutation>
createLoadClusterDAGMutation(
TargetInstrInfo const* TII,
TargetRegisterInfo const* TRI,
bool ReorderWhileClustering = false);
If ReorderWhileClustering is set to true, no attempt will be made to reduce reordering due to store clustering.
A unique pointer to the load-cluster DAG mutation.
| Name | Description |
|---|---|
| TII | Target instruction info used to recognize loads. |
| TRI | Target register info used while rewriting edges. |
| ReorderWhileClustering | Allow freer reordering while clustering. |