Pass that propagates values correlated with control‐flow conditions.
Synopsis
Declared in <llvm/Transforms/Scalar/CorrelatedValuePropagation.h>
struct CorrelatedValuePropagationPass
: OptionalPassInfoMixin<CorrelatedValuePropagationPass>
Description
Uses LazyValueInfo to exploit edge conditions and range information, replacing values with constants, simplifying phis, selects, comparisons, and switches, converting signed operations to unsigned when operands are non‐negative, and inferring no‐wrap flags.
Base Classes
Name |
Description |
A CRTP mix‐in for passes that can be skipped. |
Member Functions
Name |
Description |
Run correlated value propagation over the function. |
Static Member Functions
Name |
Description |
Return false; optional passes may be skipped. |
Created with MrDocs