[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp Makefile
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 9 13:56:01 PST 2003
Changes in directory llvm/tools/gccld:
GenerateCode.cpp updated: 1.11 -> 1.12
Makefile updated: 1.6 -> 1.7
---
Log message:
Give gccld more guts
---
Diffs of the changes: (+11 -2)
Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.11 llvm/tools/gccld/GenerateCode.cpp:1.12
--- llvm/tools/gccld/GenerateCode.cpp:1.11 Fri Oct 24 13:09:23 2003
+++ llvm/tools/gccld/GenerateCode.cpp Sun Nov 9 13:55:09 2003
@@ -16,6 +16,7 @@
#include "gccld.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
+#include "llvm/Analysis/LoadValueNumbering.h"
#include "llvm/Bytecode/WriteBytecodePass.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Transforms/IPO.h"
@@ -83,6 +84,13 @@
if (!DisableInline)
Passes.add(createFunctionInliningPass()); // Inline small functions
+
+ // Run a few AA driven optimizations here and now, to cleanup the code.
+ // Eventually we should put an IP AA in place here.
+
+ Passes.add(createLICMPass()); // Hoist loop invariants
+ Passes.add(createLoadValueNumberingPass()); // GVN for load instructions
+ Passes.add(createGCSEPass()); // Remove common subexprs
// The FuncResolve pass may leave cruft around if functions were prototyped
// differently than they were defined. Remove this cruft.
Index: llvm/tools/gccld/Makefile
diff -u llvm/tools/gccld/Makefile:1.6 llvm/tools/gccld/Makefile:1.7
--- llvm/tools/gccld/Makefile:1.6 Mon Oct 20 17:27:26 2003
+++ llvm/tools/gccld/Makefile Sun Nov 9 13:55:09 2003
@@ -1,4 +1,4 @@
-##===- tools/gccld/Makefile ------------------------------*- Makefile -*-===##
+##===- tools/gccld/Makefile --------------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
@@ -6,10 +6,11 @@
# the University of Illinois Open Source License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
+
LEVEL = ../..
TOOLNAME = gccld
-USEDLIBS = ipo.a analysis.a transforms.a ipa.a scalaropts.a transformutils.a \
+USEDLIBS = ipo.a transforms.a scalaropts.a analysis.a ipa.a transformutils.a \
target.a bcreader bcwriter vmcore support.a
include $(LEVEL)/Makefile.common
More information about the llvm-commits
mailing list