[llvm-commits] sizeof

2007-09-05 Thread S3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here is my first attempt at a patch. It introduces a new header file where people can put templates to be used wherever. I have put endof and lengthof which replace most uses of sizeof. This should make the code a little neater. -BEGIN PGP

[llvm-commits] [llvm] r41718 - in /llvm/trunk/lib/CodeGen: DwarfWriter.cpp MachineModuleInfo.cpp SelectionDAG/SelectionDAGISel.cpp

2007-09-05 Thread Duncan Sands
Author: baldrick Date: Wed Sep 5 06:27:52 2007 New Revision: 41718 URL: http://llvm.org/viewvc/llvm-project?rev=41718view=rev Log: Fix PR1628. When exception handling is turned on, labels are generated bracketing each call (not just invokes). This is used to generate entries in the exception

[llvm-commits] [llvm] r41719 - in /llvm/trunk/test/CodeGen/ARM: 2007-05-07-tailmerge-1.ll 2007-05-09-tailmerge-2.ll 2007-05-22-tailmerge-3.ll

2007-09-05 Thread Duncan Sands
Author: baldrick Date: Wed Sep 5 06:53:04 2007 New Revision: 41719 URL: http://llvm.org/viewvc/llvm-project?rev=41719view=rev Log: Testcases for PR1628. Modified: llvm/trunk/test/CodeGen/ARM/2007-05-07-tailmerge-1.ll llvm/trunk/test/CodeGen/ARM/2007-05-09-tailmerge-2.ll

[llvm-commits] [llvm] r41720 - /llvm/trunk/lib/CodeGen/DwarfWriter.cpp

2007-09-05 Thread Duncan Sands
Author: baldrick Date: Wed Sep 5 09:12:46 2007 New Revision: 41720 URL: http://llvm.org/viewvc/llvm-project?rev=41720view=rev Log: Due to label merging, the last label for an invoke may be the same as the first label for the following invoke. Remove a micro-optimization which was wrong in this

Re: [llvm-commits] sizeof

2007-09-05 Thread Chris Lattner
Here is my first attempt at a patch. It introduces a new header file where people can put templates to be used wherever. I have put endof and lengthof which replace most uses of sizeof. This should make the code a little neater. This is a nifty idea. Some specific requests: 1. Please

[llvm-commits] [llvm] r41721 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

2007-09-05 Thread Chuck Rose III
Author: cfr Date: Wed Sep 5 11:54:38 2007 New Revision: 41721 URL: http://llvm.org/viewvc/llvm-project?rev=41721view=rev Log: Added default parameters to GetElementPtrInstr constructor call. Visual Studio 2k5 was getting confused and was unable to compile it. Suspected compiler error.

Re: [llvm-commits] [llvm-gcc-4.0] r41698 - /llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp

2007-09-05 Thread Chris Lattner
On Sep 4, 2007, at 9:57 AM, Gordon Henriksen wrote: Hm. Did revision 41697 not get mailed, or is it just me? Not sure. What was that revision? Note that various repositories go to different commits lists, for example r41696 was a clang commit. -Chris

[llvm-commits] [llvm] r41726 - /llvm/trunk/lib/Support/APFloat.cpp

2007-09-05 Thread Dale Johannesen
Author: johannes Date: Wed Sep 5 15:39:49 2007 New Revision: 41726 URL: http://llvm.org/viewvc/llvm-project?rev=41726view=rev Log: Fix mod so it actually works. Fix conversions to native types to handle denormals correctly. Modified: llvm/trunk/lib/Support/APFloat.cpp Modified:

Re: [llvm-commits] sizeof

2007-09-05 Thread Evan Cheng
Hi S3 (or whoever you are :-), It's probably a good idea to post it to llvmdev first so more people can comment on it. Thanks, Evan On Sep 4, 2007, at 10:44 PM, S3 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here is my first attempt at a patch. It introduces a new header file

[llvm-commits] [llvm] r41727 - /llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp

2007-09-05 Thread Evan Cheng
Author: evancheng Date: Wed Sep 5 16:36:14 2007 New Revision: 41727 URL: http://llvm.org/viewvc/llvm-project?rev=41727view=rev Log: Missing break. Patch by Wojciech Matyjewicz. Modified: llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp Modified: llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp

[llvm-commits] [llvm] r41728 - in /llvm/trunk: include/llvm/Support/Allocator.h lib/Support/Allocator.cpp

2007-09-05 Thread Evan Cheng
Author: evancheng Date: Wed Sep 5 16:41:34 2007 New Revision: 41728 URL: http://llvm.org/viewvc/llvm-project?rev=41728view=rev Log: Added Reset() to free all allocated memory regions and reset state to be the same as right after ctor. Modified: llvm/trunk/include/llvm/Support/Allocator.h

[llvm-commits] [llvm] r41729 - in /llvm/trunk: include/llvm/CodeGen/LiveInterval.h include/llvm/CodeGen/LiveIntervalAnalysis.h lib/CodeGen/LiveInterval.cpp lib/CodeGen/LiveIntervalAnalysis.cpp lib/Cod

2007-09-05 Thread Evan Cheng
Author: evancheng Date: Wed Sep 5 16:46:51 2007 New Revision: 41729 URL: http://llvm.org/viewvc/llvm-project?rev=41729view=rev Log: Use pool allocator for all the VNInfo's to improve memory access locality. This reduces coalescing time on siod Mac OS X PPC by 35%. Also remove the back ptr from

[llvm-commits] [llvm] r41730 - /llvm/trunk/include/llvm/CodeGen/LiveInterval.h

2007-09-05 Thread Evan Cheng
Author: evancheng Date: Wed Sep 5 16:58:18 2007 New Revision: 41730 URL: http://llvm.org/viewvc/llvm-project?rev=41730view=rev Log: Accidentially left this out. Modified: llvm/trunk/include/llvm/CodeGen/LiveInterval.h Modified: llvm/trunk/include/llvm/CodeGen/LiveInterval.h URL:

[llvm-commits] [llvm] r41733 - /llvm/trunk/lib/Target/PowerPC/PPCHazardRecognizers.cpp

2007-09-05 Thread Bill Wendling
Author: void Date: Wed Sep 5 18:47:12 2007 New Revision: 41733 URL: http://llvm.org/viewvc/llvm-project?rev=41733view=rev Log: LVXL and STVXL are also a load and store resp. Modified: llvm/trunk/lib/Target/PowerPC/PPCHazardRecognizers.cpp Modified:

Re: [llvm-commits] [llvm] r41728 - in /llvm/trunk: include/llvm/Support/Allocator.h lib/Support/Allocator.cpp

2007-09-05 Thread Chris Lattner
On Sep 5, 2007, at 2:41 PM, Evan Cheng wrote: == --- llvm/trunk/lib/Support/Allocator.cpp (original) +++ llvm/trunk/lib/Support/Allocator.cpp Wed Sep 5 16:41:34 2007 @@ -92,6 +92,12 @@

Re: [llvm-commits] [llvm] r41729 - in /llvm/trunk: include/llvm/CodeGen/LiveInterval.h include/llvm/CodeGen/LiveIntervalAnalysis.h lib/CodeGen/LiveInterval.cpp lib/CodeGen/LiveIntervalAnalysis.cpp lib

2007-09-05 Thread Chris Lattner
On Sep 5, 2007, at 2:46 PM, Evan Cheng wrote: Author: evancheng Date: Wed Sep 5 16:46:51 2007 New Revision: 41729 URL: http://llvm.org/viewvc/llvm-project?rev=41729view=rev Log: Use pool allocator for all the VNInfo's to improve memory access locality. This reduces coalescing time on

[llvm-commits] [llvm] r41735 - in /llvm/trunk: lib/Target/X86/X86InstrInfo.cpp test/CodeGen/X86/2007-09-05-InvalidAsm.ll

2007-09-05 Thread Evan Cheng
Author: evancheng Date: Wed Sep 5 19:14:41 2007 New Revision: 41735 URL: http://llvm.org/viewvc/llvm-project?rev=41735view=rev Log: Fix a bug in X86InstrInfo::convertToThreeAddress that caused it to codegen: leal(,%rcx,8), %rcx It should be leal(,%rcx,8), %ecx Added:

[llvm-commits] [llvm-gcc-4.2] r41738 - in /llvm-gcc-4.2/trunk/gcc: llvm-backend.cpp llvm-convert.cpp llvm-internal.h

2007-09-05 Thread Devang Patel
Author: dpatel Date: Wed Sep 5 19:26:45 2007 New Revision: 41738 URL: http://llvm.org/viewvc/llvm-project?rev=41738view=rev Log: Replace GV from AttributeUsedGlobals list. Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

[llvm-commits] [llvm] r41739 - in /llvm/trunk/lib/CodeGen: LiveInterval.cpp LiveIntervalAnalysis.cpp

2007-09-05 Thread Evan Cheng
Author: evancheng Date: Wed Sep 5 20:07:24 2007 New Revision: 41739 URL: http://llvm.org/viewvc/llvm-project?rev=41739view=rev Log: Fix a memory leak. Modified: llvm/trunk/lib/CodeGen/LiveInterval.cpp llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Modified:

Re: [llvm-commits] [llvm] r41729 - in /llvm/trunk: include/llvm/CodeGen/LiveInterval.h include/llvm/CodeGen/LiveIntervalAnalysis.h lib/CodeGen/LiveInterval.cpp lib/CodeGen/LiveIntervalAnalysis.cpp lib

2007-09-05 Thread Evan Cheng
On Sep 5, 2007, at 5:05 PM, Chris Lattner wrote: On Sep 5, 2007, at 2:46 PM, Evan Cheng wrote: Author: evancheng Date: Wed Sep 5 16:46:51 2007 New Revision: 41729 URL: http://llvm.org/viewvc/llvm-project?rev=41729view=rev Log: Use pool allocator for all the VNInfo's to improve memory

[llvm-commits] [llvm] r41740 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2007-09-05-EqualGEP.ll

2007-09-05 Thread Nick Lewycky
Author: nicholas Date: Wed Sep 5 20:10:22 2007 New Revision: 41740 URL: http://llvm.org/viewvc/llvm-project?rev=41740view=rev Log: When the two operands of an icmp are equal, there are five possible predicates that would make the icmp true. Fixes PR1637. Added:

Re: [llvm-commits] [llvm] r41740 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2007-09-05-EqualGEP.ll

2007-09-05 Thread Chris Lattner
On Sep 5, 2007, at 6:10 PM, Nick Lewycky wrote: Author: nicholas Date: Wed Sep 5 20:10:22 2007 New Revision: 41740 URL: http://llvm.org/viewvc/llvm-project?rev=41740view=rev Log: When the two operands of an icmp are equal, there are five possible predicates that would make the icmp

Re: [llvm-commits] [llvm] r41729 - in /llvm/trunk: include/llvm/CodeGen/LiveInterval.h include/llvm/CodeGen/LiveIntervalAnalysis.h lib/CodeGen/LiveInterval.cpp lib/CodeGen/LiveIntervalAnalysis.cpp lib

2007-09-05 Thread Chris Lattner
On Sep 5, 2007, at 6:07 PM, Evan Cheng wrote: Nice! To verify, you *are* running the destructors on the VNInfo objects before you nuke the memory region, right? Not destroying the VNInfo would cause the VNInfo::kills smallvector to leak memory. Ugh, no. It's leaky like a broken lawn

[llvm-commits] [llvm] r41741 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

2007-09-05 Thread Nick Lewycky
Author: nicholas Date: Wed Sep 5 21:40:25 2007 New Revision: 41741 URL: http://llvm.org/viewvc/llvm-project?rev=41741view=rev Log: Use isTrueWhenEqual. Thanks Chris! Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Modified:

Re: [llvm-commits] [llvm] r41740 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2007-09-05-EqualGEP.ll

2007-09-05 Thread Nick Lewycky
Chris Lattner wrote: On Sep 5, 2007, at 6:10 PM, Nick Lewycky wrote: Author: nicholas Date: Wed Sep 5 20:10:22 2007 New Revision: 41740 URL: http://llvm.org/viewvc/llvm-project?rev=41740view=rev Log: When the two operands of an icmp are equal, there are five possible predicates that