[llvm-commits] [llvm-gcc-4.2] r55743 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Devang Patel
dpatel at apple.com
Wed Sep 3 15:56:33 PDT 2008
Author: dpatel
Date: Wed Sep 3 17:56:32 2008
New Revision: 55743
URL: http://llvm.org/viewvc/llvm-project?rev=55743&view=rev
Log:
Encode optimize for size as a function note.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=55743&r1=55742&r2=55743&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Wed Sep 3 17:56:32 2008
@@ -665,6 +665,9 @@
if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (FnDecl)))
Fn->setNotes(FN_NOTE_AlwaysInline);
+ if (optimize_size)
+ Fn->setNotes(FN_NOTE_OptimizeForSize);
+
// Handle annotate attributes
if (DECL_ATTRIBUTES(FnDecl))
AddAnnotateAttrsToGlobal(Fn, FnDecl);
More information about the llvm-commits
mailing list