[llvm-commits] [polly] r171843 - /polly/trunk/lib/DeadCodeElimination.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Tue Jan 8 00:27:47 PST 2013
Author: grosser
Date: Tue Jan 8 02:27:46 2013
New Revision: 171843
URL: http://llvm.org/viewvc/llvm-project?rev=171843&view=rev
Log:
clang-format the dead code elimination pass
Modified:
polly/trunk/lib/DeadCodeElimination.cpp
Modified: polly/trunk/lib/DeadCodeElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/DeadCodeElimination.cpp?rev=171843&r1=171842&r2=171843&view=diff
==============================================================================
--- polly/trunk/lib/DeadCodeElimination.cpp (original)
+++ polly/trunk/lib/DeadCodeElimination.cpp Tue Jan 8 02:27:46 2013
@@ -22,16 +22,17 @@
namespace {
- class DeadCodeElim : public ScopPass {
+class DeadCodeElim : public ScopPass {
- public:
- static char ID;
- explicit DeadCodeElim() : ScopPass(ID) {}
-
- virtual bool runOnScop(Scop &S);
- void printScop(llvm::raw_ostream &OS) const;
- void getAnalysisUsage(AnalysisUsage &AU) const;
- };
+public:
+ static char ID;
+ explicit DeadCodeElim() : ScopPass(ID) {
+ }
+
+ virtual bool runOnScop(Scop &S);
+ void printScop(llvm::raw_ostream &OS) const;
+ void getAnalysisUsage(AnalysisUsage &AU) const;
+};
}
char DeadCodeElim::ID = 0;
@@ -39,9 +40,8 @@
bool DeadCodeElim::runOnScop(Scop &S) {
Dependences *D = &getAnalysis<Dependences>();
- int dependencyKinds = Dependences::TYPE_RAW
- | Dependences::TYPE_WAR
- | Dependences::TYPE_WAW;
+ int dependencyKinds = Dependences::TYPE_RAW | Dependences::TYPE_WAR |
+ Dependences::TYPE_WAW;
isl_union_map *dependences = D->getDependences(dependencyKinds);
More information about the llvm-commits
mailing list