Go to the source code of this file.
|
| STATISTIC (RemoveTOCSave, "Number of TOC saves removed") |
|
| STATISTIC (MultiTOCSaves, "Number of functions with multiple TOC saves that must be kept") |
|
| STATISTIC (NumEliminatedSExt, "Number of eliminated sign-extensions") |
|
| STATISTIC (NumEliminatedZExt, "Number of eliminated zero-extensions") |
|
| STATISTIC (NumOptADDLIs, "Number of optimized ADD instruction fed by LI") |
|
| STATISTIC (NumConvertedToImmediateForm, "Number of instructions converted to their immediate form") |
|
| STATISTIC (NumFunctionsEnteredInMIPeephole, "Number of functions entered in PPC MI Peepholes") |
|
| STATISTIC (NumFixedPointIterations, "Number of fixed-point iterations converting reg-reg instructions " "to reg-imm ones") |
|
| INITIALIZE_PASS_BEGIN (PPCMIPeephole, DEBUG_TYPE, "PowerPC MI Peephole Optimization", false, false) INITIALIZE_PASS_END(PPCMIPeephole |
|
|
static cl::opt< bool > | FixedPointRegToImm ("ppc-reg-to-imm-fixed-point", cl::Hidden, cl::init(true), cl::desc("Iterate to a fixed point when attempting to " "convert reg-reg instructions to reg-imm")) |
|
static cl::opt< bool > | ConvertRegReg ("ppc-convert-rr-to-ri", cl::Hidden, cl::init(true), cl::desc("Convert eligible reg+reg instructions to reg+imm")) |
|
static cl::opt< bool > | EnableSExtElimination ("ppc-eliminate-signext", cl::desc("enable elimination of sign-extensions"), cl::init(false), cl::Hidden) |
|
static cl::opt< bool > | EnableZExtElimination ("ppc-eliminate-zeroext", cl::desc("enable elimination of zero-extensions"), cl::init(false), cl::Hidden) |
|
| DEBUG_TYPE |
|
PowerPC MI Peephole | Optimization |
|
PowerPC MI Peephole | false |
|
◆ DEBUG_TYPE
#define DEBUG_TYPE "ppc-mi-peepholes" |
◆ INITIALIZE_PASS_BEGIN()
◆ STATISTIC() [1/8]
STATISTIC |
( |
RemoveTOCSave |
, |
|
|
"Number of TOC saves removed" |
|
|
) |
| |
◆ STATISTIC() [2/8]
STATISTIC |
( |
MultiTOCSaves |
, |
|
|
"Number of functions with multiple TOC saves that must be kept" |
|
|
) |
| |
◆ STATISTIC() [3/8]
STATISTIC |
( |
NumEliminatedSExt |
, |
|
|
"Number of eliminated sign-extensions" |
|
|
) |
| |
◆ STATISTIC() [4/8]
STATISTIC |
( |
NumEliminatedZExt |
, |
|
|
"Number of eliminated zero-extensions" |
|
|
) |
| |
◆ STATISTIC() [5/8]
STATISTIC |
( |
NumOptADDLIs |
, |
|
|
"Number of optimized ADD instruction fed by LI" |
|
|
) |
| |
◆ STATISTIC() [6/8]
STATISTIC |
( |
NumConvertedToImmediateForm |
, |
|
|
"Number of instructions converted to their immediate form" |
|
|
) |
| |
◆ STATISTIC() [7/8]
STATISTIC |
( |
NumFunctionsEnteredInMIPeephole |
, |
|
|
"Number of functions entered in PPC MI Peepholes" |
|
|
) |
| |
◆ STATISTIC() [8/8]
STATISTIC |
( |
NumFixedPointIterations |
, |
|
|
"Number of fixed-point iterations converting reg-reg instructions " "to reg-imm ones" |
|
|
) |
| |
◆ ConvertRegReg
◆ DEBUG_TYPE
◆ EnableSExtElimination
cl::opt<bool> EnableSExtElimination("ppc-eliminate-signext", cl::desc("enable elimination of sign-extensions"), cl::init(false), cl::Hidden) |
|
static |
◆ EnableZExtElimination
cl::opt<bool> EnableZExtElimination("ppc-eliminate-zeroext", cl::desc("enable elimination of zero-extensions"), cl::init(false), cl::Hidden) |
|
static |
◆ false
PowerPC MI Peephole false |
◆ FixedPointRegToImm
cl::opt<bool> FixedPointRegToImm("ppc-reg-to-imm-fixed-point", cl::Hidden, cl::init(true), cl::desc("Iterate to a fixed point when attempting to " "convert reg-reg instructions to reg-imm")) |
|
static |
◆ Optimization
PowerPC MI Peephole Optimization |