Re: [llvm-commits] [llvm-gcc-4.2] r46381 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-internal.h llvm-types.cpp

2008-01-27 Thread Duncan Sands
Hi Evan, > Can you get me a test case? I need to see what gcc is doing. Thanks, Sure. Zero sized fields in structs may not be very useful, but it is still legal to use them, in particular you can take their address, like this: struct Z {}; struct Y { int i; struct Z z; }; void

Re: [llvm-commits] [llvm-gcc-4.2] r46381 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-internal.h llvm-types.cpp

2008-01-27 Thread Bill Wendling
On Jan 27, 2008, at 1:03 AM, Duncan Sands wrote: > Hi Evan, > >> Can you get me a test case? I need to see what gcc is doing. Thanks, > > Sure. Zero sized fields in structs may not be very useful, but it is > still legal to use them, in particular you can take their address, > like this: > > stru

Re: [llvm-commits] [llvm-gcc-4.2] r46381 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-internal.h llvm-types.cpp

2008-01-27 Thread Duncan Sands
> I'm running into this problem as well -- it crashing while compiling > gcov.c on my PPC G4. While r46381 seems the obvious culprit, to tell the truth I didn't check whether reverting this patch fixes the problem - so I could be wrong. Ciao, Duncan. ___

Re: [llvm-commits] [llvm-gcc-4.2] r46412 - in /llvm-gcc-4.2/trunk/gcc: config/i386/llvm-i386-target.h config/i386/llvm-i386.cpp llvm-abi.h llvm-convert.cpp

2008-01-27 Thread Dale Johannesen
On Jan 26, 2008, at 11:18 PM, Chris Lattner wrote: > Author: lattner > Date: Sun Jan 27 01:18:20 2008 > New Revision: 46412 > > URL: http://llvm.org/viewvc/llvm-project?rev=46412&view=rev > Log: > Change x86-32 aggregate passing code to pass many aggregates "by > pieces" > instead of passing th

[llvm-commits] [llvm-gcc-4.2] r46415 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

2008-01-27 Thread Duncan Sands
Author: baldrick Date: Sun Jan 27 12:11:13 2008 New Revision: 46415 URL: http://llvm.org/viewvc/llvm-project?rev=46415&view=rev Log: Do not mark a function readnone or readonly if it has a byval parameter. Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Modified: llvm-gcc-4.2/trunk/gcc/llvm-

[llvm-commits] [llvm] r46416 - in /llvm/trunk: lib/Transforms/Utils/InlineFunction.cpp test/Transforms/Inline/byval2.ll

2008-01-27 Thread Duncan Sands
Author: baldrick Date: Sun Jan 27 12:12:58 2008 New Revision: 46416 URL: http://llvm.org/viewvc/llvm-project?rev=46416&view=rev Log: Revert r46393: readonly/readnone functions are no longer allowed to write through byval arguments. Modified: llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp

[llvm-commits] [llvm] r46414 - in /llvm/trunk: lib/CodeGen/SelectionDAG/DAGCombiner.cpp test/CodeGen/X86/fp-in-intregs.ll

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 11:42:27 2008 New Revision: 46414 URL: http://llvm.org/viewvc/llvm-project?rev=46414&view=rev Log: Implement some dag combines that allow doing fneg/fabs/fcopysign in integer registers if used by a bitconvert or using a bitconvert. This allows us to avoid constant

[llvm-commits] [llvm] r46417 - in /llvm/trunk: lib/Transforms/Scalar/LoopUnroll.cpp test/Transforms/LoopUnroll/2007-11-05-Crash.ll

2008-01-27 Thread Nick Lewycky
Author: nicholas Date: Sun Jan 27 12:35:00 2008 New Revision: 46417 URL: http://llvm.org/viewvc/llvm-project?rev=46417&view=rev Log: Be more careful modifying the use_list while also iterating through it. Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp llvm/trunk/test/Transforms

Re: [llvm-commits] [llvm-gcc-4.2] r46415 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

2008-01-27 Thread Chris Lattner
> URL: http://llvm.org/viewvc/llvm-project?rev=46415&view=rev > Log: > Do not mark a function readnone or readonly if it has > a byval parameter. Thanks Duncan: > +uint16_t &RAttrs = Attrs[0].attrs; > +RAttrs &= ~(ParamAttr::ReadNone | ParamAttr::ReadOnly); > +if (RAttrs == ParamAttr:

Re: [llvm-commits] [llvm-gcc-4.2] r46415 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

2008-01-27 Thread Duncan Sands
> How about: > > if (RAttrs == ParamAttr::None) >Attrs.erase(Attrs.begin()); Now you see that I really don't know anything about std::vector :) I will change it. Ciao, Duncan. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.

[llvm-commits] [llvm-gcc-4.2] r46418 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

2008-01-27 Thread Duncan Sands
Author: baldrick Date: Sun Jan 27 12:58:34 2008 New Revision: 46418 URL: http://llvm.org/viewvc/llvm-project?rev=46418&view=rev Log: Baldrick discovers "erase". Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp URL: http://llvm.org/viewvc/llvm-p

[llvm-commits] [llvm] r46419 - /llvm/trunk/include/llvm/CodeGen/BreakCriticalMachineEdge.h

2008-01-27 Thread Owen Anderson
Author: resistor Date: Sun Jan 27 13:51:03 2008 New Revision: 46419 URL: http://llvm.org/viewvc/llvm-project?rev=46419&view=rev Log: Fixes for BreakCriticalMachineCodeEdge by Fernando. Modified: llvm/trunk/include/llvm/CodeGen/BreakCriticalMachineEdge.h Modified: llvm/trunk/include/llvm/Code

[llvm-commits] [llvm] r46420 - /llvm/trunk/lib/CodeGen/RegAllocLocal.cpp

2008-01-27 Thread Owen Anderson
Author: resistor Date: Sun Jan 27 16:00:00 2008 New Revision: 46420 URL: http://llvm.org/viewvc/llvm-project?rev=46420&view=rev Log: Reg alloc doesn't really need LiveVariables. Modified: llvm/trunk/lib/CodeGen/RegAllocLocal.cpp Modified: llvm/trunk/lib/CodeGen/RegAllocLocal.cpp URL: http:/

Re: [llvm-commits] [llvm-gcc-4.2] r46381 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-internal.h llvm-types.cpp

2008-01-27 Thread Evan Cheng
Sorry I have been away from my computer for the last two days. I'll look at this later tonight. Evan On Jan 27, 2008, at 10:02 AM, Duncan Sands <[EMAIL PROTECTED]> wrote: >> I'm running into this problem as well -- it crashing while compiling >> gcov.c on my PPC G4. > > While r46381 seems the

Re: [llvm-commits] [llvm-gcc-4.2] r46412 - in /llvm-gcc-4.2/trunk/gcc: config/i386/llvm-i386-target.h config/i386/llvm-i386.cpp llvm-abi.h llvm-convert.cpp

2008-01-27 Thread Chris Lattner
On Jan 27, 2008, at 10:09 AM, Dale Johannesen wrote: > On Jan 26, 2008, at 11:18 PM, Chris Lattner wrote: >> Author: lattner >> Date: Sun Jan 27 01:18:20 2008 >> New Revision: 46412 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=46412&view=rev >> Log: >> Change x86-32 aggregate passing code to

[llvm-commits] [llvm] r46421 - /llvm/trunk/tools/llvm-ld/llvm-ld.cpp

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 16:58:59 2008 New Revision: 46421 URL: http://llvm.org/viewvc/llvm-project?rev=46421&view=rev Log: Add support for frameworks. Patch by Shantonu Sen! Modified: llvm/trunk/tools/llvm-ld/llvm-ld.cpp Modified: llvm/trunk/tools/llvm-ld/llvm-ld.cpp URL: http://l

[llvm-commits] [llvm] r46422 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 17:21:58 2008 New Revision: 46422 URL: http://llvm.org/viewvc/llvm-project?rev=46422&view=rev Log: fix a crash on CodeGen/X86/vector-rem.ll Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner

[llvm-commits] [llvm] r46423 - /llvm/trunk/test/CodeGen/ARM/fparith.ll

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 17:26:37 2008 New Revision: 46423 URL: http://llvm.org/viewvc/llvm-project?rev=46423&view=rev Log: Update this test. Due to dag combiner improvements, we now compile f7/f11 to: _f7: eor r0, r0, #2, 2 @ -2147483648 bx lr _f11: bic r0, r0, #

[llvm-commits] [llvm] r46425 - /llvm/trunk/docs/Makefile

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 17:43:26 2008 New Revision: 46425 URL: http://llvm.org/viewvc/llvm-project?rev=46425&view=rev Log: Always for PACKAGEVERSION to 'mainline' for teh llvm web page. Modified: llvm/trunk/docs/Makefile Modified: llvm/trunk/docs/Makefile URL: http://llvm.org/viewv

[llvm-commits] [llvm] r46424 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 17:32:17 2008 New Revision: 46424 URL: http://llvm.org/viewvc/llvm-project?rev=46424&view=rev Log: Fix PowerPC/./2007-10-18-PtrArithmetic.ll Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombine

Re: [llvm-commits] [llvm-gcc-4.2] r46381 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-internal.h llvm-types.cpp

2008-01-27 Thread Evan Cheng
On Jan 27, 2008, at 1:03 AM, Duncan Sands <[EMAIL PROTECTED]> wrote: > Hi Evan, > >> Can you get me a test case? I need to see what gcc is doing. Thanks, > > Sure. Zero sized fields in structs may not be very useful, but it is > still legal to use them, in particular you can take their address,

[llvm-commits] [llvm] r46427 - in /llvm/trunk: lib/Transforms/Scalar/SCCP.cpp test/Transforms/SCCP/2008-01-27-UndefCorrelate.ll

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 18:32:30 2008 New Revision: 46427 URL: http://llvm.org/viewvc/llvm-project?rev=46427&view=rev Log: Fix PR1938 by forcing the code that uses an undefined value to branch one way or the other. Rewriting the code itself prevents subsequent analysis passes from making

[llvm-commits] [llvm] r46428 - /llvm/trunk/docs/LangRef.html

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 18:36:27 2008 New Revision: 46428 URL: http://llvm.org/viewvc/llvm-project?rev=46428&view=rev Log: make handling of overflow and undefined results much more clear. Patch by Eli Friedman, thanks! Modified: llvm/trunk/docs/LangRef.html Modified: llvm/trunk/do

[llvm-commits] [llvm] r46429 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2008-01-27-FloatSelect.ll

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 18:58:18 2008 New Revision: 46429 URL: http://llvm.org/viewvc/llvm-project?rev=46429&view=rev Log: Fix PR1932 by disabling an xform invalid for fdiv. Added: llvm/trunk/test/Transforms/InstCombine/2008-01-27-FloatSelect.ll Modified: llvm/trunk/lib/Transform

[llvm-commits] [llvm] r46431 - in /llvm/trunk: include/llvm/Instructions.h lib/Transforms/Scalar/InstructionCombining.cpp lib/VMCore/Instructions.cpp test/Transforms/InstCombine/2008-01-21-MismatchedC

2008-01-27 Thread Nick Lewycky
Author: nicholas Date: Sun Jan 27 21:48:02 2008 New Revision: 46431 URL: http://llvm.org/viewvc/llvm-project?rev=46431&view=rev Log: Handle some more combinations of extend and icmp. Fixes PR1940. Added: llvm/trunk/test/Transforms/InstCombine/2008-01-21-MismatchedCastAndCompare.ll Modified:

[llvm-commits] [llvm] r46432 - /llvm/trunk/Makefile.rules

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 22:18:41 2008 New Revision: 46432 URL: http://llvm.org/viewvc/llvm-project?rev=46432&view=rev Log: reduce duplicate -I flags passed to the compiler, cleaning up the VERBOSE output. Patch contributed by Sam Bishop! Modified: llvm/trunk/Makefile.rules Modified

Re: [llvm-commits] Makefile.rules patch: remove redundant -I compiler flags

2008-01-27 Thread Chris Lattner
On Jan 15, 2008, at 9:07 AM, Sam Bishop wrote: > The attached patch makes VERBOSE builds easier to wade through. > It's likely > to also permute the PROJ_* and LLVM_* includes, but I don't think that > should matter. I've done a full-tree compile and everything seems > to be > working. App

Re: [llvm-commits] [llvm] r46394 - in /llvm/trunk/lib: Target/PowerPC/PPCAsmPrinter.cpp Transforms/Scalar/SimplifyCFG.cpp

2008-01-27 Thread Chris Lattner
>>> + BuildMI(MBB, MBB.end(), TM.getInstrInfo()->get(PPC::NOP)); >>> + } >> >> Is there any reason to actually make a machineinstr here? It seems >> like it would be possible to just emit "nop" to the .s file. The JIT >> doesn't need this. >> > I initially had that, but I thought that it wo

[llvm-commits] [llvm] r46433 - /llvm/trunk/lib/Transforms/IPO/SimplifyLibCalls.cpp

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 22:41:43 2008 New Revision: 46433 URL: http://llvm.org/viewvc/llvm-project?rev=46433&view=rev Log: Transform calls to memcpy into llvm.memcpy calls, patch by Eli Friedman. Modified: llvm/trunk/lib/Transforms/IPO/SimplifyLibCalls.cpp Modified: llvm/trunk/lib/T

[llvm-commits] [test-suite] r46434 - in /test-suite/trunk/MultiSource/Benchmarks/VersaBench: ./ README.txt beamformer/ beamformer/Makefile beamformer/beamformer.c dbms/

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 23:17:19 2008 New Revision: 46434 URL: http://llvm.org/viewvc/llvm-project?rev=46434&view=rev Log: add a benchmark from 'VersaBench'. Added: test-suite/trunk/MultiSource/Benchmarks/VersaBench/ test-suite/trunk/MultiSource/Benchmarks/VersaBench/README.txt

[llvm-commits] [test-suite] r46435 [1/4] - /test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 23:23:39 2008 New Revision: 46435 URL: http://llvm.org/viewvc/llvm-project?rev=46435&view=rev Log: add a VersaBench benchmark. Added: test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/Makefile test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/c

[llvm-commits] [test-suite] r46436 - in /test-suite/trunk/MultiSource/Benchmarks/VersaBench/8b10b: ./ Makefile calc.c calc.h input.txt main.c testbench.c testbench.h

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 23:35:03 2008 New Revision: 46436 URL: http://llvm.org/viewvc/llvm-project?rev=46436&view=rev Log: add the 8b10b benchmark, hacked to take enough time to run to be interesting. Added: test-suite/trunk/MultiSource/Benchmarks/VersaBench/8b10b/ test-suite/tru

[llvm-commits] [test-suite] r46438 - in /test-suite/trunk/MultiSource/Benchmarks/VersaBench/bmm: ./ Makefile bmm.c

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:10:47 2008 New Revision: 46438 URL: http://llvm.org/viewvc/llvm-project?rev=46438&view=rev Log: add the bmm benchmark, hacked to not produce huge output nor use huge input. Added: test-suite/trunk/MultiSource/Benchmarks/VersaBench/bmm/ test-suite/trunk/

[llvm-commits] [test-suite] r46439 - in /test-suite/trunk/MultiSource/Benchmarks: Makefile VersaBench/Makefile VersaBench/README.txt

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:14:28 2008 New Revision: 46439 URL: http://llvm.org/viewvc/llvm-project?rev=46439&view=rev Log: run versabench by default Added: test-suite/trunk/MultiSource/Benchmarks/VersaBench/Makefile Modified: test-suite/trunk/MultiSource/Benchmarks/Makefile t

[llvm-commits] [test-suite] r46440 - in /test-suite/trunk/MultiSource/Benchmarks/Trimaran: ./ enc-3des/ enc-3des/Makefile enc-3des/des.c enc-3des/des.h

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:27:00 2008 New Revision: 46440 URL: http://llvm.org/viewvc/llvm-project?rev=46440&view=rev Log: Add a benchmark from the trimaran collection Added: test-suite/trunk/MultiSource/Benchmarks/Trimaran/ test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-3d

[llvm-commits] [test-suite] r46441 - in /test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-md5: ./ Makefile md5.c md5.h

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:36:10 2008 New Revision: 46441 URL: http://llvm.org/viewvc/llvm-project?rev=46441&view=rev Log: add an adapted version of md5 Added: test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-md5/ test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-md5/Makef

[llvm-commits] [test-suite] r46442 - in /test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-pc1: ./ Makefile pc1cod.c

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:52:21 2008 New Revision: 46442 URL: http://llvm.org/viewvc/llvm-project?rev=46442&view=rev Log: add a really scary benchmark Added: test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-pc1/ test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-pc1/Makefi

[llvm-commits] [test-suite] r46443 - in /test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-rc4: ./ Makefile rc4.c rc4.h

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:56:33 2008 New Revision: 46443 URL: http://llvm.org/viewvc/llvm-project?rev=46443&view=rev Log: add a new benchmark. Added: test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-rc4/ test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-rc4/Makefile t

[llvm-commits] [test-suite] r46445 - /test-suite/trunk/MultiSource/Benchmarks/VersaBench/beamformer/Makefile

2008-01-27 Thread Nick Lewycky
Author: nicholas Date: Mon Jan 28 01:16:22 2008 New Revision: 46445 URL: http://llvm.org/viewvc/llvm-project?rev=46445&view=rev Log: Make this test a little more forgiving. Modified: test-suite/trunk/MultiSource/Benchmarks/VersaBench/beamformer/Makefile Modified: test-suite/trunk/MultiSource

[llvm-commits] [test-suite] r46447 - in /test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url: packet.c packet.h url.c

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 01:23:41 2008 New Revision: 46447 URL: http://llvm.org/viewvc/llvm-project?rev=46447&view=rev Log: make this program not read random memory Modified: test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/packet.c test-suite/trunk/MultiSource/Benchm

[llvm-commits] [test-suite] r46448 - in /test-suite/trunk/MultiSource/Benchmarks: Makefile Trimaran/Makefile Trimaran/README.txt

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 01:26:07 2008 New Revision: 46448 URL: http://llvm.org/viewvc/llvm-project?rev=46448&view=rev Log: Build trimaran benchmarks by default Added: test-suite/trunk/MultiSource/Benchmarks/Trimaran/Makefile test-suite/trunk/MultiSource/Benchmarks/Trimaran/README