[llvm-commits] CVS: llvm-gcc/gcc/llvm-expand.c
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 27 10:20:28 PST 2005
Changes in directory llvm-gcc/gcc:
llvm-expand.c updated: 1.87 -> 1.88
---
Log message:
When the CFE produces globals to hold the initial constant value for large
initializers, we can mark it constant. This implements:
Regression/CFrontend/2005-02-27-MarkGlobalConstant.c
---
Diffs of the changes: (+1 -0)
llvm-expand.c | 1 +
1 files changed, 1 insertion(+)
Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.87 llvm-gcc/gcc/llvm-expand.c:1.88
--- llvm-gcc/gcc/llvm-expand.c:1.87 Wed Feb 23 11:52:46 2005
+++ llvm-gcc/gcc/llvm-expand.c Sun Feb 27 12:20:15 2005
@@ -4249,6 +4249,7 @@
sprintf(Name, ".ctor_%d", ++CtorCounter);
G = llvm_global_new(D2V(C)->Ty, Name);
G->Init = C;
+ G->isConstant = 1;
G->Linkage = L_Internal;
llvm_ilist_push_back(llvm_global, TheProgram.Globals, G);
EmitMemCpyMove(Fn, target, G2V(G),
More information about the llvm-commits
mailing list