1 //===---- BDCE.cpp - Bit-tracking dead code elimination ---------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
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
15 //===----------------------------------------------------------------------===//
17 #ifndef LLVM_TRANSFORMS_SCALAR_BDCE_H
18 #define LLVM_TRANSFORMS_SCALAR_BDCE_H
20 #include "llvm/IR/Function.h"
21 #include "llvm/IR/PassManager.h"
25 // The Bit-Tracking Dead Code Elimination pass.
26 struct BDCEPass : PassInfoMixin<BDCEPass> {
27 PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
31 #endif // LLVM_TRANSFORMS_SCALAR_BDCE_H