From edd6704458e5d35600d7879995bc76e76fe9795f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 30 Aug 2002 20:25:25 +0000 Subject: [PATCH] - GCCAS now uses load value #ing for GCSE llvm-svn: 3536 --- llvm/tools/gccas/gccas.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp index a5ceace4456a..b12ae0de629e 100644 --- a/llvm/tools/gccas/gccas.cpp +++ b/llvm/tools/gccas/gccas.cpp @@ -13,6 +13,7 @@ #include "llvm/Transforms/RaisePointerReferences.h" #include "llvm/Transforms/IPO.h" #include "llvm/Transforms/Scalar.h" +#include "llvm/Analysis/LoadValueNumbering.h" #include "llvm/Analysis/Verifier.h" #include "llvm/Bytecode/WriteBytecodePass.h" #include "llvm/Target/TargetData.h" @@ -86,6 +87,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) { addPass(PM, createInstructionCombiningPass()); // Combine silly seq's addPass(PM, createDeadInstEliminationPass()); // Kill InstCombine remnants addPass(PM, createLICMPass()); // Hoist loop invariants + addPass(PM, createLoadValueNumberingPass()); // GVN for load instructions addPass(PM, createGCSEPass()); // Remove common subexprs addPass(PM, createSCCPPass()); // Constant prop with SCCP