Create a pass that splits GEPs into a base and constant offset.
Declared in <llvm/Transforms/Scalar.h>
FunctionPass*
createSeparateConstOffsetFromGEPPass(bool LowerGEP = false);
Improves CSE by separating constant offsets from GEP address calculations.
The newly created FunctionPass.
| Name | Description |
|---|---|
| LowerGEP | If true, also lower multi-index GEPs to single-index GEPs and extract struct-field offsets. |