class InstSimplifyPass

Declaration

class InstSimplifyPass : public PassInfoMixin { /* full declaration omitted */ };

Description

Run instruction simplification across each instruction in the function. Instruction simplification has useful constraints in some contexts: - It will never introduce *new* instructions. - There is no need to iterate to a fixed point. Many passes use instruction simplification as a library facility, but it may also be useful (in tests and other contexts) to have access to this very restricted transform at a pass granularity. However, for a much more powerful and comprehensive peephole optimization engine, see the `instcombine` pass instead.

Declared at: llvm/include/llvm/Transforms/Scalar/InstSimplifyPass.h:34

Inherits from: PassInfoMixin

Method Overview

  • public llvm::PreservedAnalyses run(llvm::Function & F, llvm::FunctionAnalysisManager & AM)

Methods

ΒΆllvm::PreservedAnalyses run(
    llvm::Function& F,
    llvm::FunctionAnalysisManager& AM)

Declared at: llvm/include/llvm/Transforms/Scalar/InstSimplifyPass.h:36

Parameters

llvm::Function& F
llvm::FunctionAnalysisManager& AM