llvm::PostRAMachineSinkingPass

New PM pass that sinks copy instructions after register allocation.

Synopsis

Declared in <llvm/CodeGen/PostRAMachineSink.h>

class PostRAMachineSinkingPass
    : public OptionalPassInfoMixin<PostRAMachineSinkingPass>

Description

Moves copies that are unused in their defining block closer to their uses in successor blocks, which can expose shrink-wrapping opportunities.

Base Classes

NameDescription
OptionalPassInfoMixin<PostRAMachineSinkingPass>A CRTP mix-in for passes that can be skipped.

Member Functions

NameDescription
getRequiredProperties Return the properties this pass requires of the machine function.
run Sink unused copy instructions in MF closer to their uses.

Static Member Functions

NameDescription
isRequired Return false; optional passes may be skipped.