• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===---- BDCE.cpp - Bit-tracking dead code elimination ---------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements the Bit-Tracking Dead Code Elimination pass. Some
11 // instructions (shifts, some ands, ors, etc.) kill some of their input bits.
12 // We track these dead bits and remove instructions that compute only these
13 // dead bits.
14 //
15 //===----------------------------------------------------------------------===//
16 
17 #ifndef LLVM_TRANSFORMS_SCALAR_BDCE_H
18 #define LLVM_TRANSFORMS_SCALAR_BDCE_H
19 
20 #include "llvm/IR/Function.h"
21 #include "llvm/IR/PassManager.h"
22 
23 namespace llvm {
24 
25 // The Bit-Tracking Dead Code Elimination pass.
26 struct BDCEPass : PassInfoMixin<BDCEPass> {
27   PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
28 };
29 }
30 
31 #endif // LLVM_TRANSFORMS_SCALAR_BDCE_H
32