//===- DeadStoreElimination.h - Fast Dead Store Elimination -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file implements a trivial dead store elimination that only considers // basic-block local redundant stores. // // FIXME: This should eventually be extended to be a post-dominator tree // traversal. Doing so would be pretty trivial. // //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_SCALAR_DSE_H #define LLVM_TRANSFORMS_SCALAR_DSE_H #include "llvm/IR/Function.h" #include "llvm/IR/PassManager.h" namespace llvm { /// This class implements a trivial dead store elimination. We consider /// only the redundant stores that are local to a single Basic Block. class DSEPass : public PassInfoMixin { public: PreservedAnalyses run(Function &F, FunctionAnalysisManager &FAM); }; } #endif // LLVM_TRANSFORMS_SCALAR_DSE_H