Go to the source code of this file.
|
| STATISTIC (NumDeletes, "Number of dead copies deleted") |
|
| STATISTIC (NumCopyForwards, "Number of copy uses forwarded") |
|
| STATISTIC (NumCopyBackwardPropagated, "Number of copy defs backward propagated") |
|
| DEBUG_COUNTER (FwdCounter, "machine-cp-fwd", "Controls which register COPYs are forwarded") |
|
| INITIALIZE_PASS (MachineCopyPropagation, DEBUG_TYPE, "Machine Copy Propagation Pass", false, false) void MachineCopyPropagation |
|
static bool | isNopCopy (const MachineInstr &PreviousCopy, MCRegister Src, MCRegister Def, const TargetRegisterInfo *TRI, const TargetInstrInfo *TII, bool UseCopyInstr) |
| Return true if PreviousCopy did copy register Src to register Def .
|
|
static bool | isBackwardPropagatableCopy (MachineInstr &MI, const MachineRegisterInfo &MRI, const TargetInstrInfo &TII, bool UseCopyInstr) |
|
◆ DEBUG_TYPE
#define DEBUG_TYPE "machine-cp" |
◆ DEBUG_COUNTER()
DEBUG_COUNTER |
( |
FwdCounter |
, |
|
|
"machine-cp-fwd" |
, |
|
|
"Controls which register COPYs are forwarded" |
|
|
) |
| |
◆ INITIALIZE_PASS()
INITIALIZE_PASS |
( |
MachineCopyPropagation |
, |
|
|
DEBUG_TYPE |
, |
|
|
"Machine Copy Propagation Pass" |
, |
|
|
false |
, |
|
|
false |
|
|
) |
| |
◆ isBackwardPropagatableCopy()
◆ isNopCopy()
Return true if PreviousCopy
did copy register Src
to register Def
.
This fact may have been obscured by sub register usage or may not be true at all even though Src and Def are subregisters of the registers used in PreviousCopy. e.g. isNopCopy("ecx = COPY eax", AX, CX) == true isNopCopy("ecx = COPY eax", AH, CL) == false
Definition at line 383 of file MachineCopyPropagation.cpp.
References TII, and TRI.
◆ STATISTIC() [1/3]
STATISTIC |
( |
NumCopyBackwardPropagated |
, |
|
|
"Number of copy defs backward propagated" |
|
|
) |
| |
◆ STATISTIC() [2/3]
STATISTIC |
( |
NumCopyForwards |
, |
|
|
"Number of copy uses forwarded" |
|
|
) |
| |
◆ STATISTIC() [3/3]
STATISTIC |
( |
NumDeletes |
, |
|
|
"Number of dead copies deleted" |
|
|
) |
| |
◆ MCPUseCopyInstr
cl::opt< bool > MCPUseCopyInstr("mcp-use-is-copy-instr", cl::init(false), cl::Hidden) |
( |
"mcp-use-is-copy-instr" |
, |
|
|
cl::init(false) |
, |
|
|
cl::Hidden |
|
|
) |
| |
|
static |