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

2007-03-04 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Scalar: ScalarReplAggregates.cpp updated: 1.75 -> 1.76 --- Log message: This is the first major step of implementing PR1226: http://llvm.org/PR1226 . We now successfully scalarrepl things down to elements, but mem2reg can't promote elements that are me

[llvm-commits] CVS: llvm/lib/System/Win32/Program.inc

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/lib/System/Win32: Program.inc updated: 1.20 -> 1.21 --- Log message: Ensure 64-bit correctness. --- Diffs of the changes: (+1 -1) Program.inc |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/System/Win32/Program.inc diff -u llvm/lib/Syste

[llvm-commits] CVS: llvm/lib/System/Win32/Program.inc Win32.h

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/lib/System/Win32: Program.inc updated: 1.19 -> 1.20 Win32.h updated: 1.10 -> 1.11 --- Log message: Implement memoryLimit on Windows. --- Diffs of the changes: (+52 -6) Program.inc | 37 +++-- Win32.h | 21

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

2007-03-04 Thread Chris Lattner
>> I strongly encourage Sheng to do instcombine one piece at a time: say >> visitAND, then visitOR (etc) and submit them as separate patches. > > I have requested that he submit daily (if not more frequent) patches. Thanks! >> Blasting me with one huge patch is not going to earn brownie points, >

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

2007-03-04 Thread Reid Spencer
On Sun, 2007-03-04 at 16:05 -0800, Chris Lattner wrote: > > > The thought occurred to me :). However, this is used in > InstCombiner::SimplifyDemandedBits, which will require significant > work to APInt'ify. Using a function like this (instead of localized > bit-twiddling) will at least hel

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.25 -> 1.26 --- Log message: Elminate tabs and improve comments. --- Diffs of the changes: (+8 -7) SmallVector.h | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) Index: llvm/include/llvm/ADT/SmallV

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

2007-03-04 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.646 -> 1.647 --- Log message: fix a subtle bug that caused an MSVC warning. Thanks to Jeffc for pointing this out. --- Diffs of the changes: (+3 -2) InstructionCombining.cpp |5 +++-- 1 files changed

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

2007-03-04 Thread Chris Lattner
>> + /// getSignBit - Return a uint64_t with just the most >> significant bit set (the >> + /// sign bit, if the value is treated as a signed number). >> + uint64_t getSignBit() const { >> +return 1ULL << (getBitWidth()-1); >> + } >> + > > I'm trying to get rid of such functions and you'r

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

2007-03-04 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.645 -> 1.646 --- Log message: Add some simplifications for demanded bits, this allows instcombine to turn: define i64 @test(i64 %A, i32 %B) { %tmp12 = zext i32 %B to i64 ; [#uses=1]

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/lib/Target: TargetData.cpp updated: 1.104 -> 1.105 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+1 -1) TargetData.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Target/TargetData.cpp diff -u llvm/lib/Target/Target

[llvm-commits] CVS: llvm/test/Transforms/InstCombine/add2.ll

2007-03-04 Thread Chris Lattner
Changes in directory llvm/test/Transforms/InstCombine: add2.ll added (r1.1) --- Log message: new testcase --- Diffs of the changes: (+12 -0) add2.ll | 12 1 files changed, 12 insertions(+) Index: llvm/test/Transforms/InstCombine/add2.ll diff -c /dev/null llvm/test/Transfor

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/win32/Target: Target.vcproj updated: 1.15 -> 1.16 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+9 -0) Target.vcproj |9 + 1 files changed, 9 insertions(+) Index: llvm/win32/Target/Target.vcproj diff -u llvm/win32/Target/Target.vcpro

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/win32/TableGen: TableGen.vcproj updated: 1.21 -> 1.22 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+6 -0) TableGen.vcproj |6 ++ 1 files changed, 6 insertions(+) Index: llvm/win32/TableGen/TableGen.vcproj diff -u llvm/win32/TableGen/Tab

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.644 -> 1.645 PredicateSimplifier.cpp updated: 1.54 -> 1.55 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+2 -1) InstructionCombining.cpp |1 + PredicateSimplifier.cpp |2 +- 2 fil

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/win32/Analysis: Analysis.vcproj updated: 1.22 -> 1.23 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+6 -3) Analysis.vcproj |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) Index: llvm/win32/Analysis/Analysis.vcproj diff -u llvm

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/win32/Transforms: Transforms.vcproj updated: 1.24 -> 1.25 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+3 -21) Transforms.vcproj | 24 +++- 1 files changed, 3 insertions(+), 21 deletions(-) Index: llvm/win32/Transforms/Tra

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.24 -> 1.25 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+19 -0) SmallVector.h | 19 +++ 1 files changed, 19 insertions(+) Index: llvm/include/llvm/ADT/SmallVector.h diff -u llvm/inclu

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/lib/CodeGen/SelectionDAG: SelectionDAGISel.cpp updated: 1.379 -> 1.380 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+1 -1) SelectionDAGISel.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/CodeGen/SelectionDAG/Selec

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.68 -> 1.69 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+9 -1) APInt.cpp | 10 +- 1 files changed, 9 insertions(+), 1 deletion(-) Index: llvm/lib/Support/APInt.cpp diff -u llvm/lib/Support/APInt.cpp:1

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/win32/System: System.vcproj updated: 1.18 -> 1.19 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+6 -0) System.vcproj |6 ++ 1 files changed, 6 insertions(+) Index: llvm/win32/System/System.vcproj diff -u llvm/win32/System/System.vcproj:1

[llvm-commits] CVS: llvm/tools/llvm-nm/llvm-nm.cpp

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/tools/llvm-nm: llvm-nm.cpp updated: 1.31 -> 1.32 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+1 -0) llvm-nm.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/tools/llvm-nm/llvm-nm.cpp diff -u llvm/tools/llvm-nm/llvm-nm.cpp:1.31 llvm/to

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/win32/x86: x86.vcproj updated: 1.25 -> 1.26 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+38 -7) x86.vcproj | 45 ++--- 1 files changed, 38 insertions(+), 7 deletions(-) Index: llvm/win32/x86/x86.vcproj

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/win32/CodeGen: CodeGen.vcproj updated: 1.26 -> 1.27 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+29 -5) CodeGen.vcproj | 34 +- 1 files changed, 29 insertions(+), 5 deletions(-) Index: llvm/win32/CodeGen/CodeG

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/win32/VMCore: VMCore.vcproj updated: 1.26 -> 1.27 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+6 -10) VMCore.vcproj | 16 ++-- 1 files changed, 6 insertions(+), 10 deletions(-) Index: llvm/win32/VMCore/VMCore.vcproj diff -u llvm/

[llvm-commits] CVS: llvm/tools/llvm-prof/llvm-prof.cpp

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/tools/llvm-prof: llvm-prof.cpp updated: 1.30 -> 1.31 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+1 -0) llvm-prof.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/tools/llvm-prof/llvm-prof.cpp diff -u llvm/tools/llvm-prof/llvm-prof.cp

[llvm-commits] CVS: llvm/lib/Analysis/IPA/Andersens.cpp

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/lib/Analysis/IPA: Andersens.cpp updated: 1.45 -> 1.46 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+1 -0) Andersens.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/lib/Analysis/IPA/Andersens.cpp diff -u llvm/lib/Analysis/IPA/Andersens

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/lib/Transforms/IPO: RaiseAllocations.cpp updated: 1.39 -> 1.40 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+1 -0) RaiseAllocations.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/lib/Transforms/IPO/RaiseAllocations.cpp diff -u llvm/l

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/win32/Bytecode: Bytecode.vcproj updated: 1.6 -> 1.7 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+0 -3) Bytecode.vcproj |3 --- 1 files changed, 3 deletions(-) Index: llvm/win32/Bytecode/Bytecode.vcproj diff -u llvm/win32/Bytecode/Bytecode.

[llvm-commits] CVS: llvm/lib/VMCore/Pass.cpp PassManager.cpp Value.cpp

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/lib/VMCore: Pass.cpp updated: 1.84 -> 1.85 PassManager.cpp updated: 1.138 -> 1.139 Value.cpp updated: 1.70 -> 1.71 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+3 -1) Pass.cpp|1 + PassManager.cpp |1 + Value.cpp |2 +-

[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/include/llvm/Support: MathExtras.h updated: 1.42 -> 1.43 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+1 -1) MathExtras.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/Support/MathExtras.h diff -u llvm/inclu

[llvm-commits] CVS: llvm/include/llvm/Analysis/ScalarEvolution.h

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/include/llvm/Analysis: ScalarEvolution.h updated: 1.15 -> 1.16 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+1 -0) ScalarEvolution.h |1 + 1 files changed, 1 insertion(+) Index: llvm/include/llvm/Analysis/ScalarEvolution.h diff -u llvm/incl

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

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/win32/Support: Support.vcproj updated: 1.17 -> 1.18 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+27 -3) Support.vcproj | 30 +++--- 1 files changed, 27 insertions(+), 3 deletions(-) Index: llvm/win32/Support/Support.v

[llvm-commits] CVS: llvm/lib/Analysis/ConstantFolding.cpp

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/lib/Analysis: ConstantFolding.cpp updated: 1.19 -> 1.20 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+2 -2) ConstantFolding.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Analysis/ConstantFolding.cpp diff -u l

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

2007-03-04 Thread Reid Spencer
Hi Chris, On Sun, 2007-03-04 at 17:33 -0600, Chris Lattner wrote: > > Changes in directory llvm/include/llvm: > > DerivedTypes.h updated: 1.86 -> 1.87 > --- > Log message: > > add a getSignBit method, elimiante virtual method from getBitMask() > > > --- > Diffs of the changes: (+7 -1) > >

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

2007-03-04 Thread Chris Lattner
Changes in directory llvm/include/llvm: DerivedTypes.h updated: 1.86 -> 1.87 --- Log message: add a getSignBit method, elimiante virtual method from getBitMask() --- Diffs of the changes: (+7 -1) DerivedTypes.h |8 +++- 1 files changed, 7 insertions(+), 1 deletion(-) Index: llvm/

[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h

2007-03-04 Thread Chris Lattner
Changes in directory llvm/include/llvm/Support: MathExtras.h updated: 1.41 -> 1.42 --- Log message: fix 80 col violations, mark arrays static --- Diffs of the changes: (+12 -8) MathExtras.h | 20 1 files changed, 12 insertions(+), 8 deletions(-) Index: llvm/include

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

2007-03-04 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.643 -> 1.644 --- Log message: simplify some code --- Diffs of the changes: (+17 -18) InstructionCombining.cpp | 35 +-- 1 files changed, 17 insertions(+), 18 deletions(-)

[llvm-commits] CVS: llvm-www/developers.txt

2007-03-04 Thread Jim Laskey
Changes in directory llvm-www: developers.txt updated: 1.9 -> 1.10 --- Log message: Upadte e-mail address. --- Diffs of the changes: (+1 -1) developers.txt |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm-www/developers.txt diff -u llvm-www/developers.txt:1.9 llvm-www

[llvm-commits] Updated LowerSwitch pass

2007-03-04 Thread Anton Korobeynikov
Hello, Everyone. This is updated LowerSwitch patch. I've also attached examples - before & after. I'll add testcase soon after commit. -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University. diff -r d294d12d3530 lib/Transforms/Utils/Lowe

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

2007-03-04 Thread Chris Lattner
Changes in directory llvm/lib/CodeGen/SelectionDAG: DAGCombiner.cpp updated: 1.273 -> 1.274 SelectionDAG.cpp updated: 1.392 -> 1.393 --- Log message: fold away addc nodes when we know there cannot be a carry-out. --- Diffs of the changes: (+28 -8) DAGCombiner.cpp | 35 ++

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

2007-03-04 Thread Chris Lattner
Changes in directory llvm/include/llvm/CodeGen: SelectionDAGNodes.h updated: 1.178 -> 1.179 --- Log message: add a new node --- Diffs of the changes: (+4 -0) SelectionDAGNodes.h |4 1 files changed, 4 insertions(+) Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h diff -u llv

[llvm-commits] CVS: llvm/test/CodeGen/Generic/addc-fold2.ll

2007-03-04 Thread Chris Lattner
Changes in directory llvm/test/CodeGen/Generic: addc-fold2.ll added (r1.1) --- Log message: new testcase, corresponds to: long long test(long long A, unsigned B) { return (A + ((long long)B << 32)); } --- Diffs of the changes: (+11 -0) addc-fold2.ll | 11 +++ 1 files changed,

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

2007-03-04 Thread Chris Lattner
Changes in directory llvm/lib/CodeGen/SelectionDAG: DAGCombiner.cpp updated: 1.272 -> 1.273 --- Log message: generalize --- Diffs of the changes: (+9 -5) DAGCombiner.cpp | 14 +- 1 files changed, 9 insertions(+), 5 deletions(-) Index: llvm/lib/CodeGen/SelectionDAG/DAGCombin

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

2007-03-04 Thread Chris Lattner
Changes in directory llvm/lib/CodeGen/SelectionDAG: DAGCombiner.cpp updated: 1.271 -> 1.272 --- Log message: canonicalize constants to the RHS of addc/adde. If nothing uses the carry out of addc, turn it into add. This allows us to compile: long long test(long long A, unsigned B) { return

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

2007-03-04 Thread Chris Lattner
Changes in directory llvm/lib/CodeGen/SelectionDAG: SelectionDAG.cpp updated: 1.391 -> 1.392 --- Log message: eliminate some ops if they have an undef RHS --- Diffs of the changes: (+2 -0) SelectionDAG.cpp |2 ++ 1 files changed, 2 insertions(+) Index: llvm/lib/CodeGen/SelectionDAG/S

[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/SignlessTypes/ccc.c

2007-03-04 Thread Reid Spencer
Changes in directory llvm-test/SingleSource/UnitTests/SignlessTypes: ccc.c updated: 1.2 -> 1.3 --- Log message: Terminate output with newline. --- Diffs of the changes: (+1 -1) ccc.c |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm-test/SingleSource/UnitTests/Signles

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

2007-03-04 Thread Chris Lattner
On Mar 3, 2007, at 6:30 AM, Nicolas Geoffray wrote: > Chris Lattner wrote: >> >>> Because R31 is not used as a callee saved register when >>> llvm::NoFramePointerElim is set to 1. >> >> NoFramePointerElim doesn't change the ABI, only the codegen model. > > Yes it doesn't change the ABI, but R31