LLVM 24.0.0git
GVN.h File Reference

This file provides the interface for LLVM's Global Value Numbering pass which eliminates fully redundant instructions. More...

#include "llvm/IR/PassManager.h"
#include <optional>

Go to the source code of this file.

Classes

struct  llvm::GVNOptions
 A set of parameters to control various transforms performed by GVN pass. More...
class  llvm::GVNPass

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Functions

LLVM_ABI FunctionPass * llvm::createGVNPass (bool ScalarPRE)
 Create a legacy GVN pass.
LLVM_ABI FunctionPass * llvm::createGVNPass ()

Detailed Description

This file provides the interface for LLVM's Global Value Numbering pass which eliminates fully redundant instructions.

It also does somewhat Ad-Hoc PRE and dead load elimination.

Definition in file GVN.h.