LLVM 22.0.0git
GCEmptyBasicBlocks.cpp File Reference

This file contains the implementation of empty blocks garbage collection pass. More...

Go to the source code of this file.

Classes

class  GCEmptyBasicBlocksLegacy

Macros

#define DEBUG_TYPE   "gc-empty-basic-blocks"

Functions

 STATISTIC (NumEmptyBlocksRemoved, "Number of empty blocks removed")
static bool removeEmptyBlocks (MachineFunction &MF)
 INITIALIZE_PASS (GCEmptyBasicBlocksLegacy, "gc-empty-basic-blocks", "Removes empty basic blocks and redirects their uses to their " "fallthrough blocks.", false, false) MachineFunctionPass *llvm

Detailed Description

This file contains the implementation of empty blocks garbage collection pass.

Definition in file GCEmptyBasicBlocks.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "gc-empty-basic-blocks"

Definition at line 26 of file GCEmptyBasicBlocks.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( GCEmptyBasicBlocksLegacy ,
"gc-empty-basic-blocks" ,
"Removes empty basic blocks and redirects their uses to their " "fallthrough blocks." ,
false ,
false  )

◆ removeEmptyBlocks()

◆ STATISTIC()

STATISTIC ( NumEmptyBlocksRemoved ,
"Number of empty blocks removed"  )