LLVM 22.0.0git
SIOptimizeExecMaskingPreRA.cpp File Reference

This pass performs exec mask handling peephole optimizations which needs to be done before register allocation to reduce register pressure. More...

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "si-optimize-exec-masking-pre-ra"

Functions

 INITIALIZE_PASS_BEGIN (SIOptimizeExecMaskingPreRALegacy, DEBUG_TYPE, "SI optimize exec mask operations pre-RA", false, false) INITIALIZE_PASS_END(SIOptimizeExecMaskingPreRALegacy
static bool isDefBetween (const LiveRange &LR, SlotIndex AndIdx, SlotIndex SelIdx)
static bool isDefBetween (const SIRegisterInfo &TRI, LiveIntervals *LIS, Register Reg, const MachineInstr &Sel, const MachineInstr &And)

Variables

 DEBUG_TYPE
SI optimize exec mask operations pre RA
SI optimize exec mask operations pre false

Detailed Description

This pass performs exec mask handling peephole optimizations which needs to be done before register allocation to reduce register pressure.

Definition in file SIOptimizeExecMaskingPreRA.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "si-optimize-exec-masking-pre-ra"

Definition at line 25 of file SIOptimizeExecMaskingPreRA.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( SIOptimizeExecMaskingPreRALegacy ,
DEBUG_TYPE ,
"SI optimize exec mask operations pre-RA" ,
false ,
false  )

◆ isDefBetween() [1/2]

◆ isDefBetween() [2/2]

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 78 of file SIOptimizeExecMaskingPreRA.cpp.

◆ false

SI optimize exec mask operations pre false

Definition at line 79 of file SIOptimizeExecMaskingPreRA.cpp.

◆ RA