Pass that demotes registers to memory allocas.
Declared in <llvm/Transforms/Scalar/Reg2Mem.h>
class RegToMemPass
: public OptionalPassInfoMixin<RegToMemPass>
Converts virtual registers and PHI nodes into loads and stores of allocas so that only allocas and loads before PHI nodes are live across basic blocks, making CFG transformations easier.
| Name | Description |
|---|---|
OptionalPassInfoMixin<RegToMemPass> | A CRTP mix-in for passes that can be skipped. |
| Name | Description |
|---|---|
run | Run register-to-memory demotion over the function. |
| Name | Description |
|---|---|
isRequired | Return false; optional passes may be skipped. |