[llvm-commits] CVS: llvm/test/Transforms/ScalarRepl/memcpy-from-global.ll

2007-04-25 Thread Chris Lattner
Changes in directory llvm/test/Transforms/ScalarRepl: memcpy-from-global.ll added (r1.1) --- Log message: new testcase, should be able to eliminate the alloca and memcpy --- Diffs of the changes: (+33 -0) memcpy-from-global.ll | 33 + 1 files changed, 33

[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp

2007-04-25 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Scalar: ScalarReplAggregates.cpp updated: 1.87 - 1.88 --- Log message: If an alloca only has two types of uses: 1) reads 2) a memcpy/memmove that copies from a constant global, then we can change the reads to read from the global instead of from the

Re: [llvm-commits] [126488] Fix PR1352 and CFrontend/2007-04-24-VolatileStructCopy.c

2007-04-25 Thread Duncan Sands
Hi Chris, // Non-bitfield aggregate value. -Emit(TREE_OPERAND(exp, 1), LV.Ptr); -if (DestLoc) +if (DestLoc) { + Emit(TREE_OPERAND(exp, 1), LV.Ptr); EmitAggregateCopy(DestLoc, LV.Ptr, TREE_TYPE(exp), isVolatile, false); why is this ^^^ right? Doesn't a non-null

[llvm-commits] CVS: llvm/lib/Target/IA64/IA64InstrInfo.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/Target/IA64: IA64InstrInfo.cpp updated: 1.7 - 1.8 --- Log message: Relex assertions to account for additional implicit def / use operands. --- Diffs of the changes: (+1 -1) IA64InstrInfo.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Target/ARM/ARMInstrInfo.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/Target/ARM: ARMInstrInfo.cpp updated: 1.20 - 1.21 --- Log message: Relex assertions to account for additional implicit def / use operands. --- Diffs of the changes: (+1 -1) ARMInstrInfo.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/Target/X86: X86InstrInfo.cpp updated: 1.84 - 1.85 --- Log message: Relex assertions to account for additional implicit def / use operands. --- Diffs of the changes: (+1 -1) X86InstrInfo.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaInstrInfo.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/Target/Alpha: AlphaInstrInfo.cpp updated: 1.16 - 1.17 --- Log message: Relex assertions to account for additional implicit def / use operands. --- Diffs of the changes: (+1 -1) AlphaInstrInfo.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCInstrInfo.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/Target/PowerPC: PPCInstrInfo.cpp updated: 1.36 - 1.37 --- Log message: Relex assertions to account for additional implicit def / use operands. --- Diffs of the changes: (+5 -5) PPCInstrInfo.cpp | 10 +- 1 files changed, 5 insertions(+), 5

[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLinearScan.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: RegAllocLinearScan.cpp updated: 1.143 - 1.144 --- Log message: Clean up. --- Diffs of the changes: (+2 -4) RegAllocLinearScan.cpp |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp diff -u

[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h

2007-04-25 Thread Evan Cheng
Changes in directory llvm/include/llvm/CodeGen: MachineInstr.h updated: 1.215 - 1.216 --- Log message: Minor speed tweak. --- Diffs of the changes: (+3 -4) MachineInstr.h |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) Index: llvm/include/llvm/CodeGen/MachineInstr.h diff

[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h

2007-04-25 Thread Evan Cheng
Changes in directory llvm/include/llvm/Target: MRegisterInfo.h updated: 1.106 - 1.107 --- Log message: Test if a register is sub- or super-register of another. --- Diffs of the changes: (+16 -0) MRegisterInfo.h | 16 1 files changed, 16 insertions(+) Index:

[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp LiveVariables.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: LiveIntervalAnalysis.cpp updated: 1.237 - 1.238 LiveVariables.cpp updated: 1.73 - 1.74 --- Log message: Fix for PR1306: http://llvm.org/PR1306 . - A register def / use now implicitly affects sub-register liveness but does not affect liveness information

[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h LiveVariables.h

2007-04-25 Thread Evan Cheng
Changes in directory llvm/include/llvm/CodeGen: LiveIntervalAnalysis.h updated: 1.79 - 1.80 LiveVariables.h updated: 1.38 - 1.39 --- Log message: Fix for PR1306: http://llvm.org/PR1306 . - A register def / use now implicitly affects sub-register liveness but does not affect liveness

[llvm-commits] llvm-gcc mirror not updating

2007-04-25 Thread Jeff Cohen
It did not update last night. In addition, it did not update the night before that at 2am PDT as claimed in the svn log. My nightly tester pulled in those changes only last night, 25 hours after the log claimed they were committed. ___ llvm-commits

[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/lib/CodeGen: AsmPrinter.cpp updated: 1.156 - 1.157 --- Log message: Implement aliases. This fixes PR1017: http://llvm.org/PR1017 and it's dependent bugs. CFE part will follow. --- Diffs of the changes: (+25 -1) AsmPrinter.cpp | 26 +-

[llvm-commits] CVS: llvm/include/llvm/CodeGen/AsmPrinter.h

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/include/llvm/CodeGen: AsmPrinter.h updated: 1.62 - 1.63 --- Log message: Implement aliases. This fixes PR1017: http://llvm.org/PR1017 and it's dependent bugs. CFE part will follow. --- Diffs of the changes: (+1 -0) AsmPrinter.h |1 + 1 files changed, 1

[llvm-commits] CVS: llvm/docs/BytecodeFormat.html LangRef.html

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/docs: BytecodeFormat.html updated: 1.69 - 1.70 LangRef.html updated: 1.237 - 1.238 --- Log message: Implement aliases. This fixes PR1017: http://llvm.org/PR1017 and it's dependent bugs. CFE part will follow. --- Diffs of the changes: (+91 -15)

[llvm-commits] CVS: llvm/lib/Transforms/IPO/GlobalDCE.cpp

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/lib/Transforms/IPO: GlobalDCE.cpp updated: 1.42 - 1.43 --- Log message: Implement aliases. This fixes PR1017: http://llvm.org/PR1017 and it's dependent bugs. CFE part will follow. --- Diffs of the changes: (+12 -1) GlobalDCE.cpp | 13 - 1 files

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/lib/Bytecode/Writer: Writer.cpp updated: 1.176 - 1.177 --- Log message: Implement aliases. This fixes PR1017: http://llvm.org/PR1017 and it's dependent bugs. CFE part will follow. --- Diffs of the changes: (+26 -1) Writer.cpp | 27 ++-

[llvm-commits] CVS: llvm/include/llvm/Function.h GlobalValue.h GlobalVariable.h Module.h Value.h ValueSymbolTable.h

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/include/llvm: Function.h updated: 1.81 - 1.82 GlobalValue.h updated: 1.38 - 1.39 GlobalVariable.h updated: 1.44 - 1.45 Module.h updated: 1.88 - 1.89 Value.h updated: 1.100 - 1.101 ValueSymbolTable.h updated: 1.12 - 1.13 --- Log message: Implement aliases. This fixes

[llvm-commits] CVS: llvm/test/Feature/aliases.ll

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/test/Feature: aliases.ll added (r1.1) --- Log message: Implement aliases. This fixes PR1017: http://llvm.org/PR1017 and it's dependent bugs. CFE part will follow. --- Diffs of the changes: (+28 -0) aliases.ll | 28 1 files

[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/lib/Bytecode/Reader: Reader.cpp updated: 1.254 - 1.255 --- Log message: Implement aliases. This fixes PR1017: http://llvm.org/PR1017 and it's dependent bugs. CFE part will follow. --- Diffs of the changes: (+49 -2) Reader.cpp | 51

[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetAsmInfo.cpp

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/lib/Target/X86: X86TargetAsmInfo.cpp updated: 1.35 - 1.36 --- Log message: Implement aliases. This fixes PR1017: http://llvm.org/PR1017 and it's dependent bugs. CFE part will follow. --- Diffs of the changes: (+2 -0) X86TargetAsmInfo.cpp |2 ++ 1 files

[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp Module.cpp Verifier.cpp

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/lib/VMCore: AsmWriter.cpp updated: 1.274 - 1.275 Globals.cpp updated: 1.19 - 1.20 Module.cpp updated: 1.80 - 1.81 Verifier.cpp updated: 1.205 - 1.206 --- Log message: Implement aliases. This fixes PR1017: http://llvm.org/PR1017 and it's dependent bugs. CFE part

[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2007-04-25-weak.c

2007-04-25 Thread Lauro Ramos Venancio
Changes in directory llvm-test/SingleSource/UnitTests: 2007-04-25-weak.c added (r1.1) --- Log message: Add a failing weak test. --- Diffs of the changes: (+8 -0) 2007-04-25-weak.c |8 1 files changed, 8 insertions(+) Index: llvm-test/SingleSource/UnitTests/2007-04-25-weak.c

[llvm-commits] llvm-gcc part of PR1017

2007-04-25 Thread Anton Korobeynikov
Hello, Everyone. Please find attached llvm-gcc patch for symbol aliasing support. Now libstdc++ can be build as shared library on x86/linux, stripping 10M from the llvm-gcc distribution. This fixes: PR843, PR1006, PR1017. CFrontend test will follow asap after this patch will be applied. --

[llvm-commits] CVS: llvm/lib/Target/ARM/ARMAsmPrinter.cpp

2007-04-25 Thread Lauro Ramos Venancio
Changes in directory llvm/lib/Target/ARM: ARMAsmPrinter.cpp updated: 1.66 - 1.67 --- Log message: remember to emit weak reference in one more case. --- Diffs of the changes: (+6 -1) ARMAsmPrinter.cpp |7 ++- 1 files changed, 6 insertions(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/test/CodeGen/ARM/weak2.ll

2007-04-25 Thread Lauro Ramos Venancio
Changes in directory llvm/test/CodeGen/ARM: weak2.ll added (r1.1) --- Log message: remember to emit weak reference in one more case. --- Diffs of the changes: (+18 -0) weak2.ll | 18 ++ 1 files changed, 18 insertions(+) Index: llvm/test/CodeGen/ARM/weak2.ll diff -c

Re: [llvm-commits] CVS: llvm/include/llvm/Function.h GlobalValue.h GlobalVariable.h Module.h Value.h ValueSymbolTable.h

2007-04-25 Thread Evan Cheng
Hi Anton, You forgot to check in GlobalAlias.h. Evan On Apr 25, 2007, at 7:28 AM, Anton Korobeynikov wrote: Changes in directory llvm/include/llvm: Function.h updated: 1.81 - 1.82 GlobalValue.h updated: 1.38 - 1.39 GlobalVariable.h updated: 1.44 - 1.45 Module.h updated: 1.88 - 1.89

[llvm-commits] CVS: llvm/include/llvm/GlobalAlias.h

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/include/llvm: GlobalAlias.h added (r1.1) --- Log message: Add missed file --- Diffs of the changes: (+83 -0) GlobalAlias.h | 83 ++ 1 files changed, 83 insertions(+) Index:

[llvm-commits] [126543] Clean up this macro to only eval each argument once.

2007-04-25 Thread clattner
Revision: 126543 Author: clattner Date: 2007-04-25 09:52:59 -0700 (Wed, 25 Apr 2007) Log Message: --- Clean up this macro to only eval each argument once. Modified Paths: -- apple-local/branches/llvm/gcc/expr.c Modified: apple-local/branches/llvm/gcc/expr.c

Re: [llvm-commits] [126543] Clean up this macro to only eval each argument once.

2007-04-25 Thread Bill
On 4/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: #undef MOVE_BY_PIECES_P -#define MOVE_BY_PIECES_P(SIZE, ALIGN) ((SIZE-SIZE)+(ALIGN-ALIGN)) +#define MOVE_BY_PIECES_P(SIZE, ALIGN) (0*(SIZE)*(ALIGN)) Why not just make it: #define MOVE_BY_PIECES_P(SIZE, ALIGN) 0 ? -bw

Re: [llvm-commits] [126543] Clean up this macro to only eval each argument once.

2007-04-25 Thread Chris Lattner
On Apr 25, 2007, at 9:56 AM, Bill wrote: On 4/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: #undef MOVE_BY_PIECES_P -#define MOVE_BY_PIECES_P(SIZE, ALIGN) ((SIZE-SIZE)+(ALIGN-ALIGN)) +#define MOVE_BY_PIECES_P(SIZE, ALIGN) (0*(SIZE)*(ALIGN)) Why not just make it: #define

Re: [llvm-commits] llvm-gcc part of PR1017

2007-04-25 Thread Chris Lattner
On Apr 25, 2007, at 7:39 AM, Anton Korobeynikov wrote: Hello, Everyone. Please find attached llvm-gcc patch for symbol aliasing support. Now libstdc++ can be build as shared library on x86/linux, stripping 10M from the llvm-gcc distribution. This fixes: PR843, PR1006, PR1017. Ooh, cool.

Re: [llvm-commits] [126543] Clean up this macro to only eval each argument once.

2007-04-25 Thread Bill
On 4/25/07, Chris Lattner [EMAIL PROTECTED] wrote: On Apr 25, 2007, at 9:56 AM, Bill wrote: On 4/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: #undef MOVE_BY_PIECES_P -#define MOVE_BY_PIECES_P(SIZE, ALIGN) ((SIZE-SIZE)+(ALIGN-ALIGN)) +#define MOVE_BY_PIECES_P(SIZE, ALIGN)

[llvm-commits] CVS: llvm/win32/VMCore/VMCore.vcproj

2007-04-25 Thread Jeff Cohen
Changes in directory llvm/win32/VMCore: VMCore.vcproj updated: 1.28 - 1.29 --- Log message: Note new header file. --- Diffs of the changes: (+3 -0) VMCore.vcproj |3 +++ 1 files changed, 3 insertions(+) Index: llvm/win32/VMCore/VMCore.vcproj diff -u

[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp

2007-04-25 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Scalar: ScalarReplAggregates.cpp updated: 1.88 - 1.89 --- Log message: Remove unused function argument. --- Diffs of the changes: (+1 -1) ScalarReplAggregates.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Transforms/Utils/Mem2Reg.cpp PromoteMemoryToRegister.cpp

2007-04-25 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Utils: Mem2Reg.cpp updated: 1.24 - 1.25 PromoteMemoryToRegister.cpp updated: 1.98 - 1.99 --- Log message: Remove unused function argument. --- Diffs of the changes: (+3 -3) Mem2Reg.cpp |2 +- PromoteMemoryToRegister.cpp |4

[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h

2007-04-25 Thread Devang Patel
Changes in directory llvm/include/llvm/Transforms/Utils: PromoteMemToReg.h updated: 1.10 - 1.11 --- Log message: Remove unused function argument. --- Diffs of the changes: (+1 -1) PromoteMemToReg.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp

2007-04-25 Thread Chris Lattner
Changes in directory llvm/lib/Target/X86: X86RegisterInfo.cpp updated: 1.214 - 1.215 --- Log message: do the multiplication as signed, so that 2*-2 == -4 instead of 4294967292 when promoted to 64-bits --- Diffs of the changes: (+2 -1) X86RegisterInfo.cpp |3 ++- 1 files changed, 2

Re: [llvm-commits] CVS: llvm/include/llvm/GlobalAlias.h

2007-04-25 Thread Chris Lattner
+ //===__-- llvm/GlobalAlias.h - GlobalAlias class *- C++ -*-===// Why the _? Please remove :) + class GlobalAlias : public GlobalValue { + friend class SymbolTableListTraitsGlobalAlias, Module; + void operator=(const GlobalAlias ); // Do not implement +

[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y

2007-04-25 Thread Anton Korobeynikov
Changes in directory llvm/lib/AsmParser: llvmAsmParser.y updated: 1.348 - 1.349 --- Log message: Add missed semicolon. Resotre compatibility with older bisons --- Diffs of the changes: (+1 -1) llvmAsmParser.y |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

Re: [llvm-commits] CVS: llvm/include/llvm/GlobalAlias.h

2007-04-25 Thread Reid Spencer
Anton, Some comments ... On Wed, 25 Apr 2007 11:42:57 -0500 Anton Korobeynikov [EMAIL PROTECTED] wrote: Changes in directory llvm/include/llvm: GlobalAlias.h added (r1.1) --- Log message: Add missed file --- Diffs of the changes: (+83 -0) GlobalAlias.h | 83

[llvm-commits] CVS: llvm/lib/Transforms/Utils/Mem2Reg.cpp PromoteMemoryToRegister.cpp

2007-04-25 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Utils: Mem2Reg.cpp updated: 1.25 - 1.26 PromoteMemoryToRegister.cpp updated: 1.99 - 1.100 --- Log message: Mem2Reg does not need TargetData. --- Diffs of the changes: (+6 -11) Mem2Reg.cpp |5 + PromoteMemoryToRegister.cpp |

[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen/SelectionDAG: SelectionDAGISel.cpp updated: 1.427 - 1.428 --- Log message: This was lefted out. Fixed sumarray-dbl. --- Diffs of the changes: (+1 -0) SelectionDAGISel.cpp |1 + 1 files changed, 1 insertion(+) Index:

[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h

2007-04-25 Thread Devang Patel
Changes in directory llvm/include/llvm/Transforms/Utils: PromoteMemToReg.h updated: 1.11 - 1.12 --- Log message: Mem2Reg does not need TargetData. --- Diffs of the changes: (+1 -2) PromoteMemToReg.h |3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) Index:

[llvm-commits] CVS: llvm/lib/CodeGen/LiveVariables.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: LiveVariables.cpp updated: 1.74 - 1.75 --- Log message: Data structure change to improve compile time (especially in debug mode). --- Diffs of the changes: (+23 -12) LiveVariables.cpp | 35 +++ 1 files changed, 23

[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveVariables.h

2007-04-25 Thread Evan Cheng
Changes in directory llvm/include/llvm/CodeGen: LiveVariables.h updated: 1.39 - 1.40 --- Log message: Data structure change to improve compile time (especially in debug mode). --- Diffs of the changes: (+10 -14) LiveVariables.h | 24 ++-- 1 files changed, 10

Re: [llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y

2007-04-25 Thread Chris Lattner
Don't forget to check in the .cvs files, -Chris On Apr 25, 2007, at 11:07 AM, Anton Korobeynikov wrote: Changes in directory llvm/lib/AsmParser: llvmAsmParser.y updated: 1.348 - 1.349 --- Log message: Add missed semicolon. Resotre compatibility with older bisons --- Diffs of the

Re: [llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp Module.cpp Verifier.cpp

2007-04-25 Thread Chris Lattner
On Apr 25, 2007, at 7:28 AM, Anton Korobeynikov wrote: +void GlobalAlias::setAliasee(const GlobalValue *GV) +{ + // FIXME: Some checks? + Aliasee = GV; +} + This should assert that GV type matches the alias type. @@ -277,7 +282,9 @@ Assert1(!GV.isDeclaration() ||

Re: [llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y

2007-04-25 Thread Anton Korobeynikov
Don't forget to check in the .cvs files, No .cvs files change. -- With best regards, Anton Korobeynikov. Faculty of Mathematics Mechanics, Saint Petersburg State University. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu

Re: [llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y

2007-04-25 Thread Chris Lattner
On Apr 25, 2007, at 1:21 PM, Anton Korobeynikov wrote: Don't forget to check in the .cvs files, No .cvs files change. Ah, nifty. Thanks, -Chris ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu

Re: [llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp

2007-04-25 Thread Chris Lattner
+ if (TAI-getSetDirective()) { +if (M.alias_size()) + SwitchToTextSection(TAI-getTextSection()); M.alias_size is linear time (okay okay, in the number of aliases, but still...). Please use !M.alias_empty() -Chris ___ llvm-commits

Re: [llvm-commits] CVS: llvm/docs/BytecodeFormat.html LangRef.html

2007-04-25 Thread Chris Lattner
On Apr 25, 2007, at 7:28 AM, Anton Korobeynikov wrote: --- llvm/docs/LangRef.html:1.237 Sun Apr 22 09:56:37 2007 +++ llvm/docs/LangRef.htmlWed Apr 25 09:27:10 2007 @@ -498,7 +498,8 @@ pIt is illegal for a function ideclaration/i to have any linkage type other than externally

Re: [llvm-commits] CVS: llvm/lib/Transforms/IPO/GlobalDCE.cpp

2007-04-25 Thread Chris Lattner
On Apr 25, 2007, at 7:28 AM, Anton Korobeynikov wrote: + for (Module::alias_iterator I = M.alias_begin(), E = M.alias_end(); + I != E; ++I) { +Changed |= RemoveUnusedGlobalValue(*I); RemoveUnusedGlobalValue shouldn't be called here. +// Aliases are always needed even if

Re: [llvm-commits] CVS: llvm/test/Feature/aliases.ll

2007-04-25 Thread Chris Lattner
Implement aliases. This fixes PR1017: http://llvm.org/PR1017 and it's dependent bugs. CFE part will follow. One thing that just occurred to me. When you switch GlobalAlias to have a Use for the aliasee, RAUW will work on globals that are aliased. Unfortunately, various bits of code (like

Re: [llvm-commits] CVS: llvm/include/llvm/Function.h GlobalValue.h GlobalVariable.h Module.h Value.h ValueSymbolTable.h

2007-04-25 Thread Chris Lattner
@@ -121,6 +121,16 @@ /// value is outside of the current translation unit... virtual bool isDeclaration() const = 0; + /// removeFromParent - This method unlinks 'this' from the containing module, + /// but does not delete it. + /// + virtual void removeFromParent() = 0; + +

Re: [llvm-commits] CVS: llvm/include/llvm/Function.h GlobalValue.h GlobalVariable.h Module.h Value.h ValueSymbolTable.h

2007-04-25 Thread Chris Lattner
On Apr 25, 2007, at 1:53 PM, Anton Korobeynikov wrote: Hello, Chris. Why do these all need to be virtual and accessible from GlobalValue? For llvm-gcc patch. Or, it's better to insert three-way cast there? I'd prefer to do the three way compare here, -Chris

[llvm-commits] CVS: llvm/lib/Target/X86/X86.td X86InstrInfo.td

2007-04-25 Thread Bill Wendling
Changes in directory llvm/lib/Target/X86: X86.td updated: 1.30 - 1.31 X86InstrInfo.td updated: 1.305 - 1.306 --- Log message: Add SSSE3 as a feature of Core2. Add MMX registers to the list of registers clobbered by a call. --- Diffs of the changes: (+2 -1) X86.td |2 +-

[llvm-commits] CVS: llvm/lib/CodeGen/LiveVariables.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: LiveVariables.cpp updated: 1.75 - 1.76 --- Log message: Clean up. --- Diffs of the changes: (+1 -3) LiveVariables.cpp |4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) Index: llvm/lib/CodeGen/LiveVariables.cpp diff -u

[llvm-commits] CVS: llvm/lib/CodeGen/MachineFunction.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: MachineFunction.cpp updated: 1.110 - 1.111 --- Log message: Change UsedPhysRegs from array bool to BitVector to save some space. Setting / getting its states now go through MachineFunction. --- Diffs of the changes: (+2 -2) MachineFunction.cpp |4

[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFunction.h

2007-04-25 Thread Evan Cheng
Changes in directory llvm/include/llvm/CodeGen: MachineFunction.h updated: 1.65 - 1.66 --- Log message: Change UsedPhysRegs from array bool to BitVector to save some space. Setting / getting its states now go through MachineFunction. --- Diffs of the changes: (+12 -20) MachineFunction.h |

[llvm-commits] CVS: llvm/lib/CodeGen/PrologEpilogInserter.cpp RegAllocLinearScan.cpp RegAllocLocal.cpp RegAllocSimple.cpp VirtRegMap.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: PrologEpilogInserter.cpp updated: 1.81 - 1.82 RegAllocLinearScan.cpp updated: 1.144 - 1.145 RegAllocLocal.cpp updated: 1.101 - 1.102 RegAllocSimple.cpp updated: 1.82 - 1.83 VirtRegMap.cpp updated: 1.109 - 1.110 --- Log message: Match

[llvm-commits] CVS: llvm/lib/Target/ARM/ARMRegisterInfo.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/Target/ARM: ARMRegisterInfo.cpp updated: 1.87 - 1.88 --- Log message: Match MachineFunction::UsedPhysRegs changes. --- Diffs of the changes: (+6 -9) ARMRegisterInfo.cpp | 15 ++- 1 files changed, 6 insertions(+), 9 deletions(-) Index:

[llvm-commits] CVS: llvm/lib/Target/X86/X86FloatingPoint.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/Target/X86: X86FloatingPoint.cpp updated: 1.67 - 1.68 --- Log message: Match MachineFunction::UsedPhysRegs changes. --- Diffs of the changes: (+1 -2) X86FloatingPoint.cpp |3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) Index:

[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/Target/PowerPC: PPCRegisterInfo.cpp updated: 1.121 - 1.122 --- Log message: Match MachineFunction::UsedPhysRegs changes. --- Diffs of the changes: (+6 -7) PPCRegisterInfo.cpp | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) Index:

[llvm-commits] CVS: llvm/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll

2007-04-25 Thread Chris Lattner
Changes in directory llvm/test/CodeGen/X86: 2007-04-25-MMX-PADDQ.ll updated: 1.1 - 1.2 --- Log message: no longer needed --- Diffs of the changes: (+1 -1) 2007-04-25-MMX-PADDQ.ll |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/test/CodeGen/X86/vec_add.ll

2007-04-25 Thread Evan Cheng
Changes in directory llvm/test/CodeGen/X86: vec_add.ll added (r1.1) --- Log message: New test case. --- Diffs of the changes: (+7 -0) vec_add.ll |7 +++ 1 files changed, 7 insertions(+) Index: llvm/test/CodeGen/X86/vec_add.ll diff -c /dev/null llvm/test/CodeGen/X86/vec_add.ll:1.1

[llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/Target/X86: X86RegisterInfo.cpp updated: 1.215 - 1.216 --- Log message: Fix for PR1348: http://llvm.org/PR1348 . If stack inc / dec amount is 32-bits, issue a series of add / sub instructions. --- Diffs of the changes: (+27 -18) X86RegisterInfo.cpp | 45

[llvm-commits] CVS: llvm/test/CodeGen/X86/2007-04-24-Huge-Stack.ll

2007-04-25 Thread Evan Cheng
Changes in directory llvm/test/CodeGen/X86: 2007-04-24-Huge-Stack.ll added (r1.1) --- Log message: PR1348: http://llvm.org/PR1348 test case. --- Diffs of the changes: (+19 -0) 2007-04-24-Huge-Stack.ll | 19 +++ 1 files changed, 19 insertions(+) Index:

[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveVariables.h

2007-04-25 Thread Evan Cheng
Changes in directory llvm/include/llvm/CodeGen: LiveVariables.h updated: 1.40 - 1.41 --- Log message: Be careful when to add implicit kill / dead operands. Don't add them during / post reg-allocation. --- Diffs of the changes: (+22 -14) LiveVariables.h | 36

[llvm-commits] CVS: llvm/lib/CodeGen/LiveVariables.cpp

2007-04-25 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: LiveVariables.cpp updated: 1.76 - 1.77 --- Log message: Be careful when to add implicit kill / dead operands. Don't add them during / post reg-allocation. --- Diffs of the changes: (+17 -9) LiveVariables.cpp | 26 +- 1 files

[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp

2007-04-25 Thread Chris Lattner
Changes in directory llvm/lib/VMCore: AsmWriter.cpp updated: 1.275 - 1.276 --- Log message: print aliases before functions --- Diffs of the changes: (+6 -5) AsmWriter.cpp | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) Index: llvm/lib/VMCore/AsmWriter.cpp diff -u

[llvm-commits] CVS: llvm/include/llvm/Bitcode/LLVMBitCodes.h

2007-04-25 Thread Chris Lattner
Changes in directory llvm/include/llvm/Bitcode: LLVMBitCodes.h updated: 1.5 - 1.6 --- Log message: add alias support to bitcode --- Diffs of the changes: (+4 -1) LLVMBitCodes.h |5 - 1 files changed, 4 insertions(+), 1 deletion(-) Index: llvm/include/llvm/Bitcode/LLVMBitCodes.h

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/ValueEnumerator.cpp Writer.cpp

2007-04-25 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: ValueEnumerator.cpp updated: 1.2 - 1.3 Writer.cpp updated: 1.8 - 1.9 --- Log message: add bitcode alias support --- Diffs of the changes: (+22 -0) ValueEnumerator.cpp | 10 ++ Writer.cpp | 12 2 files

[llvm-commits] CVS: llvm/lib/Bitcode/Reader/BitcodeReader.cpp BitcodeReader.h

2007-04-25 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Reader: BitcodeReader.cpp updated: 1.12 - 1.13 BitcodeReader.h updated: 1.8 - 1.9 --- Log message: add bitcode alias support --- Diffs of the changes: (+59 -17) BitcodeReader.cpp | 74 +-

[llvm-commits] CVS: llvm/include/llvm/Bitcode/LLVMBitCodes.h

2007-04-25 Thread Chris Lattner
Changes in directory llvm/include/llvm/Bitcode: LLVMBitCodes.h updated: 1.6 - 1.7 --- Log message: add a new code --- Diffs of the changes: (+4 -1) LLVMBitCodes.h |5 - 1 files changed, 4 insertions(+), 1 deletion(-) Index: llvm/include/llvm/Bitcode/LLVMBitCodes.h diff -u

[llvm-commits] CVS: llvm/lib/Bitcode/Reader/BitcodeReader.cpp BitcodeReader.h

2007-04-25 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Reader: BitcodeReader.cpp updated: 1.13 - 1.14 BitcodeReader.h updated: 1.9 - 1.10 --- Log message: move some code around, fix a bug in the reader reading globalinits (which I just introduced), stub out function reading, purge aggregate values from the

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/ValueEnumerator.cpp ValueEnumerator.h Writer.cpp

2007-04-25 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: ValueEnumerator.cpp updated: 1.3 - 1.4 ValueEnumerator.h updated: 1.3 - 1.4 Writer.cpp updated: 1.9 - 1.10 --- Log message: move some code around, fix a bug in the reader reading globalinits (which I just introduced), stub out function reading,

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/Writer.cpp

2007-04-25 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: Writer.cpp updated: 1.10 - 1.11 --- Log message: improve a comment --- Diffs of the changes: (+5 -3) Writer.cpp |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) Index: llvm/lib/Bitcode/Writer/Writer.cpp diff -u

[llvm-commits] CVS: llvm/test/TestRunner.sh

2007-04-25 Thread Reid Spencer
Changes in directory llvm/test: TestRunner.sh updated: 1.17 - 1.18 --- Log message: For PR1355: http://llvm.org/PR1355 : Make the script process multiple files and describe its usage properly. --- Diffs of the changes: (+25 -25) TestRunner.sh | 50

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/ValueEnumerator.cpp ValueEnumerator.h

2007-04-25 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: ValueEnumerator.cpp updated: 1.5 - 1.6 ValueEnumerator.h updated: 1.5 - 1.6 --- Log message: enumerate BB's separately from other function values. --- Diffs of the changes: (+16 -4) ValueEnumerator.cpp |7 ++- ValueEnumerator.h |

[llvm-commits] CVS: llvm/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll

2007-04-25 Thread Chris Lattner
Changes in directory llvm/test/Assembler: 2007-04-25-AssemblerFoldExternWeak.ll added (r1.1) --- Log message: new testcase --- Diffs of the changes: (+6 -0) 2007-04-25-AssemblerFoldExternWeak.ll |6 ++ 1 files changed, 6 insertions(+) Index:

[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y

2007-04-25 Thread Chris Lattner
Changes in directory llvm/lib/AsmParser: llvmAsmParser.y updated: 1.350 - 1.351 --- Log message: wrap long lines Fix PR1358: http://llvm.org/PR1358 and test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll, by creating forward decl globals with linkage extern_weak to defeat implicit

[llvm-commits] CVS: llvm/include/llvm/Bitcode/LLVMBitCodes.h

2007-04-25 Thread Chris Lattner
Changes in directory llvm/include/llvm/Bitcode: LLVMBitCodes.h updated: 1.7 - 1.8 --- Log message: start defining codes for instructions --- Diffs of the changes: (+34 -6) LLVMBitCodes.h | 40 ++-- 1 files changed, 34 insertions(+), 6 deletions(-)

[llvm-commits] CVS: llvm/lib/Bitcode/Writer/ValueEnumerator.cpp ValueEnumerator.h Writer.cpp

2007-04-25 Thread Chris Lattner
Changes in directory llvm/lib/Bitcode/Writer: ValueEnumerator.cpp updated: 1.6 - 1.7 ValueEnumerator.h updated: 1.6 - 1.7 Writer.cpp updated: 1.12 - 1.13 --- Log message: start code for writing out instructions. Separate BB#s from normal value #'s. --- Diffs of the changes: (+83 -5)