llvm::StackColoringPass

New PM pass that merges disjoint stack slots to reduce frame size.

Synopsis

Declared in <llvm/CodeGen/StackColoring.h>

class StackColoringPass
    : public RequiredPassInfoMixin<StackColoringPass>

Description

Uses LIFETIME_START and LIFETIME_END markers to find non-overlapping stack allocations and color them onto shared slots. Distinct from StackSlotColoring, which optimizes spill slots.

Base Classes

NameDescription
RequiredPassInfoMixin<StackColoringPass>A CRTP mix-in for passes that should not be skipped.

Member Functions

NameDescription
run Merge disjoint stack slots in MF.

Static Member Functions

NameDescription
isRequired Return true; required passes cannot be skipped.