llvm::TypePromotionPass

New PM pass that promotes small integer types that would otherwise be promoted during legalization.

Synopsis

Declared in <llvm/CodeGen/TypePromotion.h>

class TypePromotionPass
    : public OptionalPassInfoMixin<TypePromotionPass>

Description

Works around SelectionDAG limitations for cyclic regions by promoting non-wrapping or safely wrapping instruction trees rooted at icmp operands.

Base Classes

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

Member Functions

NameDescription
TypePromotionPass [constructor]Construct a TypePromotion pass for target machine TM.
run Promote small integer types in F when profitable for the target.

Static Member Functions

NameDescription
isRequired Return false; optional passes may be skipped.