From 47d923c2e0f2e5e67ad1a3b82e417fe0ddc6ba59 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 May 2002 22:44:31 +0000 Subject: [PATCH] Add LICM pass to compiler llvm-svn: 2613 --- llvm/tools/gccas/gccas.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp index cd4ccd2de503..c2f7a8c542b5 100644 --- a/llvm/tools/gccas/gccas.cpp +++ b/llvm/tools/gccas/gccas.cpp @@ -80,6 +80,7 @@ int main(int argc, char **argv) { Passes.add(createReassociatePass()); // Reassociate expressions Passes.add(createInstructionCombiningPass()); // Combine silly seq's Passes.add(createDeadInstEliminationPass()); // Kill InstCombine remnants + Passes.add(createLICMPass()); // Hoist loop invariants Passes.add(createGCSEPass()); // Remove common subexprs Passes.add(createSCCPPass()); // Constant prop with SCCP Passes.add(createDeadCodeEliminationPass()); // Remove Dead code/vars