Run more post-link xforms
authorChris Lattner <sabre@nondot.org>
Thu, 29 May 2003 15:16:45 +0000 (15:16 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 29 May 2003 15:16:45 +0000 (15:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6400 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/Makefile.libs

index d2f825cb20cf4d7da803f993661f103df9219352..52766e16bfcec25758329df5e553d78c76baf07d 100644 (file)
@@ -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.
 #