LLVM 20.0.0git
Classes | Macros | Functions
GCEmptyBasicBlocks.cpp File Reference

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

#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineJumpTableInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/InitializePasses.h"

Go to the source code of this file.

Classes

class  GCEmptyBasicBlocks
 

Macros

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

Functions

 STATISTIC (NumEmptyBlocksRemoved, "Number of empty blocks removed")
 
 INITIALIZE_PASS (GCEmptyBasicBlocks, "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 25 of file GCEmptyBasicBlocks.cpp.

Function Documentation

◆ INITIALIZE_PASS()

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

Definition at line 92 of file GCEmptyBasicBlocks.cpp.

◆ STATISTIC()

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