From d339f98844b5c2606c6fd20ddcc001943cbadc28 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 29 May 2003 15:16:45 +0000 Subject: [PATCH] Run more post-link xforms llvm-svn: 6400 --- llvm/runtime/Makefile.libs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llvm/runtime/Makefile.libs b/llvm/runtime/Makefile.libs index d2f825cb20cf..52766e16bfce 100644 --- a/llvm/runtime/Makefile.libs +++ b/llvm/runtime/Makefile.libs @@ -31,10 +31,13 @@ ifdef EXPORTED_SYMBOL_LIST LLINK_OPTS += -internalize -internalize-public-api-list=$(EXPORTED_SYMBOL_LIST) endif +# Standard set of postlink optimizations... +LLINK_OPTS += -inline -globaldce -funcresolve -deadtypeelim -instcombine -simplifycfg + # Link the library, then perform postlink optimization... $(DESTLIBNAME): $(DESTLIBDIR)/.dir $(LObjects) $(LLINK) $(LOPT) $(LLINK) -f $(LObjects) $(LDFLAGS) | \ - $(LOPT) -f -q -funcresolve -deadtypeelim $(LLINK_OPTS) -globaldce -o $@ + $(LOPT) -f -q $(LLINK_OPTS) -o $@ # Install target for libraries: Copy into the gcc install directory. #