Re: [llvm-commits] [llvm] r46397 - /llvm/trunk/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.ll

2008-01-26 Thread Chris Lattner
On Jan 25, 2008, at 10:56 PM, Bill Wendling wrote: > Author: void > Date: Sat Jan 26 00:56:08 2008 > New Revision: 46397 > > URL: http://llvm.org/viewvc/llvm-project?rev=46397&view=rev > Log: > Need to convert to LLVM code and not C. This should also pass a darwin target triple to llc (or embed

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

2008-01-26 Thread Chris Lattner
On Jan 25, 2008, at 9:58 PM, Duncan Sands wrote: >> If a function takes a byval parameter, it can't be readnone, we >> have to mark it readonly instead. This fixes >> test/CFrontend/2008-01-25-ByValReadNone.c > > Thanks for doing this! No problem, thanks for pointing out that it needed to be do

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

2008-01-26 Thread Bill Wendling
On Jan 26, 2008, at 12:21 AM, Chris Lattner wrote: > > On Jan 25, 2008, at 10:51 PM, Bill Wendling wrote: > >> Author: void >> Date: Sat Jan 26 00:51:24 2008 >> New Revision: 46394 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=46394&view=rev >> Log: >> If there are no machine instructions emi

[llvm-commits] [llvm] r46398 - in /llvm/trunk: lib/Target/PowerPC/PPCAsmPrinter.cpp lib/Target/X86/X86ATTAsmPrinter.cpp test/CodeGen/X86/2008-01-25-EmptyFunction.ll

2008-01-26 Thread Bill Wendling
Author: void Date: Sat Jan 26 03:03:52 2008 New Revision: 46398 URL: http://llvm.org/viewvc/llvm-project?rev=46398&view=rev Log: If there's no instructions being emitted on X86 for a function, emit a nop. Emit the nop directly for PPC. Added: llvm/trunk/test/CodeGen/X86/2008-01-25-EmptyFuncti

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

2008-01-26 Thread Chris Lattner
On Jan 25, 2008, at 10:51 PM, Bill Wendling wrote: > Author: void > Date: Sat Jan 26 00:51:24 2008 > New Revision: 46394 > > URL: http://llvm.org/viewvc/llvm-project?rev=46394&view=rev > Log: > If there are no machine instructions emitted for a function, then > insert > a "nop" instruction so t

Re: [llvm-commits] [llvm] r46393 - in /llvm/trunk: lib/Transforms/Utils/InlineFunction.cpp test/CFrontend/2008-01-26-ReadOnlyByVal.c

2008-01-26 Thread Chris Lattner
On Jan 25, 2008, at 10:41 PM, Duncan Sands wrote: > Author: baldrick > Date: Sat Jan 26 00:41:49 2008 > New Revision: 46393 > > URL: http://llvm.org/viewvc/llvm-project?rev=46393&view=rev > Log: > Create an explicit copy for byval parameters even > when inlining a readonly function. Are you sure

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

2008-01-26 Thread Duncan Sands
> No problem, thanks for pointing out that it needed to be done. It > would be nice if globalsmodref inferred that functions which only > store to their byval args are really readnone. I guess you mean readonly, since readnone+byval doesn't really work. D. ___

Re: [llvm-commits] [llvm] r46393 - in /llvm/trunk: lib/Transforms/Utils/InlineFunction.cpp test/CFrontend/2008-01-26-ReadOnlyByVal.c

2008-01-26 Thread Duncan Sands
> > Create an explicit copy for byval parameters even > > when inlining a readonly function. > > Are you sure this is correct? There is a difference between 'const', > 'pure' and readnone/readonly. Further, isn't it always safe to elide > the copy for readnone functions? A readnone function

[llvm-commits] [llvm] r46399 - /llvm/trunk/test/Transforms/Inline/byval2.ll

2008-01-26 Thread Duncan Sands
Author: baldrick Date: Sat Jan 26 06:33:01 2008 New Revision: 46399 URL: http://llvm.org/viewvc/llvm-project?rev=46399&view=rev Log: Invert this test, because it is wrong if we allow readonly functions to use byval parameters as local storage (how much do we want this?). Modified: llvm/trunk/

Re: [llvm-commits] [llvm-testresults] Grawp-PIC i386 nightly tester results

2008-01-26 Thread Chris Lattner
On Jan 26, 2008, at 6:16 AM, Apache wrote: > > New Test Failures: > test/Transforms/Inline/byval2.ll [DEJAGNU] Hi Duncan, This is failing because inlining of readonly functions is making the memcpy after your change. Why is the memcpy needed here? Is this because stores to the byval argumen

[llvm-commits] [llvm] r46401 - in /llvm/trunk: lib/CodeGen/SelectionDAG/DAGCombiner.cpp test/CodeGen/X86/stack-align.ll

2008-01-26 Thread Chris Lattner
Author: lattner Date: Sat Jan 26 13:45:50 2008 New Revision: 46401 URL: http://llvm.org/viewvc/llvm-project?rev=46401&view=rev Log: Infer alignment of loads and increase their alignment when we can tell they are from the stack. This allows us to compile stack-align.ll to: _test: movsd

[llvm-commits] [llvm] r46400 - /llvm/trunk/test/CodeGen/X86/2007-08-10-LEA16Use32.ll

2008-01-26 Thread Chris Lattner
Author: lattner Date: Sat Jan 26 13:35:46 2008 New Revision: 46400 URL: http://llvm.org/viewvc/llvm-project?rev=46400&view=rev Log: remove a useless xfailed test. Removed: llvm/trunk/test/CodeGen/X86/2007-08-10-LEA16Use32.ll Removed: llvm/trunk/test/CodeGen/X86/2007-08-10-LEA16Use32.ll URL:

[llvm-commits] [llvm] r46402 - /llvm/trunk/include/llvm/Support/MathExtras.h

2008-01-26 Thread Chris Lattner
Author: lattner Date: Sat Jan 26 13:50:30 2008 New Revision: 46402 URL: http://llvm.org/viewvc/llvm-project?rev=46402&view=rev Log: make this 64-bit safe Modified: llvm/trunk/include/llvm/Support/MathExtras.h Modified: llvm/trunk/include/llvm/Support/MathExtras.h URL: http://llvm.org/viewvc

[llvm-commits] [llvm] r46403 - /llvm/trunk/test/CodeGen/X86/vec_align.ll

2008-01-26 Thread Chris Lattner
Author: lattner Date: Sat Jan 26 14:06:45 2008 New Revision: 46403 URL: http://llvm.org/viewvc/llvm-project?rev=46403&view=rev Log: New test to verify that "merging 4 loads into a vec load" continues to work and continues to infer alignment info. Added: llvm/trunk/test/CodeGen/X86/vec_align.

[llvm-commits] [llvm] r46404 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

2008-01-26 Thread Chris Lattner
Author: lattner Date: Sat Jan 26 14:07:42 2008 New Revision: 46404 URL: http://llvm.org/viewvc/llvm-project?rev=46404&view=rev Log: Remove some code for inferring alignment info from the x86 backend now that the dag combiner does it. Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

[llvm-commits] [llvm] r46405 - /llvm/trunk/lib/Target/X86/README-SSE.txt

2008-01-26 Thread Chris Lattner
Author: lattner Date: Sat Jan 26 14:12:07 2008 New Revision: 46405 URL: http://llvm.org/viewvc/llvm-project?rev=46405&view=rev Log: Add some notes. Modified: llvm/trunk/lib/Target/X86/README-SSE.txt Modified: llvm/trunk/lib/Target/X86/README-SSE.txt URL: http://llvm.org/viewvc/llvm-project/

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-26 Thread Evan Cheng
Can you get me a test case? I need to see what gcc is doing. Thanks, Evan On Jan 25, 2008, at 10:25 PM, Duncan Sands <[EMAIL PROTECTED]> wrote: > Hi Evan, dropping zero sized aggregates from types > http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080121/057570.html > broke the Ada

[llvm-commits] [llvm] r46406 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/fpextend.ll

2008-01-26 Thread Chris Lattner
Author: lattner Date: Sat Jan 26 23:29:54 2008 New Revision: 46406 URL: http://llvm.org/viewvc/llvm-project?rev=46406&view=rev Log: Fold fptrunc(add (fpextend x), (fpextend y)) -> add(x,y), as GCC does. Added: llvm/trunk/test/Transforms/InstCombine/fpextend.ll Modified: llvm/trunk/lib/Tra

[llvm-commits] [llvm] r46407 - /llvm/trunk/lib/CodeGen/AsmPrinter.cpp

2008-01-26 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 00:09:28 2008 New Revision: 46407 URL: http://llvm.org/viewvc/llvm-project?rev=46407&view=rev Log: For long double constants, print an approximation of their value to the .s file to make it easier to read. Modified: llvm/trunk/lib/CodeGen/AsmPrinter.cpp Modi

[llvm-commits] [llvm] r46409 - /llvm/trunk/test/Transforms/CorrelatedExprs/

2008-01-26 Thread Bill Wendling
Author: void Date: Sun Jan 27 00:13:32 2008 New Revision: 46409 URL: http://llvm.org/viewvc/llvm-project?rev=46409&view=rev Log: The CorrelatedExpressions pass is now no more. Removed: llvm/trunk/test/Transforms/CorrelatedExprs/ ___ llvm-commits ma

[llvm-commits] [llvm] r46410 - /llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

2008-01-26 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 00:19:08 2008 New Revision: 46410 URL: http://llvm.org/viewvc/llvm-project?rev=46410&view=rev Log: make isExactlyValue work for long double. Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNo

[llvm-commits] [llvm] r46411 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

2008-01-26 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 00:19:31 2008 New Revision: 46411 URL: http://llvm.org/viewvc/llvm-project?rev=46411&view=rev Log: Use fldz and fld1 for long double constants instead of a constant pool load. Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Modified: llvm/trunk/lib/Ta

[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-26 Thread Chris Lattner
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 them with byval. This allows us to get significantly better code without

[llvm-commits] [llvm] r46413 - /llvm/trunk/lib/Target/X86/README-SSE.txt

2008-01-26 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 01:31:41 2008 New Revision: 46413 URL: http://llvm.org/viewvc/llvm-project?rev=46413&view=rev Log: add a note Modified: llvm/trunk/lib/Target/X86/README-SSE.txt Modified: llvm/trunk/lib/Target/X86/README-SSE.txt URL: http://llvm.org/viewvc/llvm-project/llvm/