[llvm-commits] ExecutionEngine/2003-01-15-AlignmentTest.ll asserts on SPARC

2007-10-11 Thread Gabor Greif
Hi all, I get an ugly interpreter failure: Test Run By ggreif on Thu Oct 11 12:41:31 2007 Native configuration is sparc-sun-solaris2.9 === ExecutionEngine tests === Schedule of variations: unix Running target unix Using /home/ggreif/share/dejagnu/baseboards/unix.exp as

Re: [llvm-commits] ExecutionEngine/2003-01-15-AlignmentTest.ll asserts on SPARC

2007-10-11 Thread Chris Lattner
On Oct 11, 2007, at 3:52 AM, Gabor Greif wrote: Hi all, I get an ugly interpreter failure: The patch looks great to me, please apply! It would also be nice to add a // avoid calls of malloc(0). comment before it, -Chris Test Run By ggreif on Thu Oct 11 12:41:31 2007 Native

Re: [llvm-commits] [llvm] r42864 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll

2007-10-11 Thread Dale Johannesen
You aren't checking alignment when choosing the new pointer type. Are you sure this works on machines that don't have misaligned load/ store? In general memcpy handling is highly target specific. I'd be wary of doing too much in target-independent code, although I think the general idea

[llvm-commits] [llvm] r42865 - in /llvm/trunk: include/llvm/ADT/APFloat.h lib/AsmParser/Lexer.cpp.cvs lib/AsmParser/Lexer.l lib/AsmParser/Lexer.l.cvs lib/Bitcode/Reader/BitcodeReader.cpp lib/Bitcode/W

2007-10-11 Thread Dale Johannesen
Author: johannes Date: Thu Oct 11 13:07:22 2007 New Revision: 42865 URL: http://llvm.org/viewvc/llvm-project?rev=42865view=rev Log: Next PPC long double bits. First cut at constants. No compile-time support for constant operations yet, just format transformations. Make readers and writers work.

Re: [llvm-commits] [llvm] r42864 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll

2007-10-11 Thread Dale Johannesen
On Oct 11, 2007, at 10:54 AM, Devang Patel wrote: On Oct 11, 2007, at 10:46 AM, Dale Johannesen wrote: You aren't checking alignment when choosing the new pointer type. Are you sure this works on machines that don't have misaligned load/store? In general memcpy handling is highly

Re: [llvm-commits] [llvm] r42864 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll

2007-10-11 Thread Devang Patel
On Oct 11, 2007, at 10:46 AM, Dale Johannesen wrote: You aren't checking alignment when choosing the new pointer type. Are you sure this works on machines that don't have misaligned load/ store? In general memcpy handling is highly target specific. I'd be wary of doing too much in

[llvm-commits] [nightly-test-server] r42867 - /nightly-test-server/trunk/AcceptTestResults.php

2007-10-11 Thread Tanya Lattner
Author: tbrethou Date: Thu Oct 11 13:37:13 2007 New Revision: 42867 URL: http://llvm.org/viewvc/llvm-project?rev=42867view=rev Log: Fix typos in accept results script. Modified: nightly-test-server/trunk/AcceptTestResults.php Modified: nightly-test-server/trunk/AcceptTestResults.php URL:

[llvm-commits] [llvm] r42871 - /llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp

2007-10-11 Thread Gabor Greif
Author: ggreif Date: Thu Oct 11 14:40:35 2007 New Revision: 42871 URL: http://llvm.org/viewvc/llvm-project?rev=42871view=rev Log: Fix an assertion abort on sparc. malloc(0) is allowed to return NULL. Modified: llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp Modified:

[llvm-commits] [llvm-gcc-4.0] r42872 - in /llvm-gcc-4.0/trunk/gcc: llvm-convert.cpp llvm-types.cpp

2007-10-11 Thread Dale Johannesen
Author: johannes Date: Thu Oct 11 14:41:40 2007 New Revision: 42872 URL: http://llvm.org/viewvc/llvm-project?rev=42872view=rev Log: Emit PPC long doubles correctly (they aren't actually generated yet). Modified: llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp

[llvm-commits] [llvm-gcc-4.2] r42873 - in /llvm-gcc-4.2/trunk/gcc: llvm-convert.cpp llvm-types.cpp

2007-10-11 Thread Dale Johannesen
Author: johannes Date: Thu Oct 11 14:47:49 2007 New Revision: 42873 URL: http://llvm.org/viewvc/llvm-project?rev=42873view=rev Log: Emit PPC long double correctly (it's not actually generated yet) Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

[llvm-commits] [llvm] r42874 - /llvm/trunk/lib/Target/X86/X86InstrSSE.td

2007-10-11 Thread Dale Johannesen
Author: johannes Date: Thu Oct 11 15:58:37 2007 New Revision: 42874 URL: http://llvm.org/viewvc/llvm-project?rev=42874view=rev Log: Add missing argument to PALIGNR Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td URL:

[llvm-commits] [llvm-gcc-4.0] r42875 - /llvm-gcc-4.0/trunk/gcc/objc/objc-act.c

2007-10-11 Thread Bill Wendling
Author: void Date: Thu Oct 11 16:15:15 2007 New Revision: 42875 URL: http://llvm.org/viewvc/llvm-project?rev=42875view=rev Log: Explicit convert needed. Modified: llvm-gcc-4.0/trunk/gcc/objc/objc-act.c Modified: llvm-gcc-4.0/trunk/gcc/objc/objc-act.c URL:

[llvm-commits] [llvm-gcc-4.2] r42876 - /llvm-gcc-4.2/trunk/gcc/objc/objc-act.c

2007-10-11 Thread Bill Wendling
Author: void Date: Thu Oct 11 16:15:49 2007 New Revision: 42876 URL: http://llvm.org/viewvc/llvm-project?rev=42876view=rev Log: Explicit cast needed Modified: llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Modified: llvm-gcc-4.2/trunk/gcc/objc/objc-act.c URL:

[llvm-commits] [llvm] r42869 - /llvm/trunk/CREDITS.TXT

2007-10-11 Thread Arnold Schwaighofer
Author: arnolds Date: Thu Oct 11 13:54:49 2007 New Revision: 42869 URL: http://llvm.org/viewvc/llvm-project?rev=42869view=rev Log: Adding myself Modified: llvm/trunk/CREDITS.TXT Modified: llvm/trunk/CREDITS.TXT URL:

[llvm-commits] [llvm] r42877 - /llvm/trunk/include/llvm/ADT/ImmutableSet.h

2007-10-11 Thread Ted Kremenek
Author: kremenek Date: Thu Oct 11 16:51:04 2007 New Revision: 42877 URL: http://llvm.org/viewvc/llvm-project?rev=42877view=rev Log: Provided accessors to internal allocator for ImutAVLTree and ImmutableSet. Added postfix ++,-- support for ImmutableSet::iterator. Modified:

Re: [llvm-commits] [llvm] r42864 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll

2007-10-11 Thread Dan Gohman
+ // If MemCpyInst length is 1/2/4/8 bytes then replace memcpy with load/store Neat! + ConstantInt *MemOpLength = dyn_castConstantInt(CI.getOperand(3)); + if (isaMemCpyInst(MI)) +if (MemOpLength) { Can you replace these two if statements with if

Re: [llvm-commits] [llvm] r42864 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll

2007-10-11 Thread Dan Gohman
On Thu, Oct 11, 2007 at 05:08:55PM -0500, Dan Gohman wrote: +unsigned Size = MemOpLength-getZExtValue(); +unsigned Align = castConstantInt(CI.getOperand(4))-getZExtValue(); +const PointerType *PTy = castPointerType(CI.getOperand(1)-getType()); +const

[llvm-commits] [llvm] r42878 - /llvm/trunk/test/CodeGen/X86/2007-09-17-ObjcFrameEH.ll

2007-10-11 Thread Dan Gohman
Author: djg Date: Thu Oct 11 18:04:36 2007 New Revision: 42878 URL: http://llvm.org/viewvc/llvm-project?rev=42878view=rev Log: Add an explicit target triple to make this test behave as expected on non-Apple hosts. And use the count script instead of wc + grep. Modified:

[llvm-commits] [llvm] r42879 - in /llvm/trunk: include/llvm/CodeGen/SelectionDAGNodes.h lib/CodeGen/SelectionDAG/SelectionDAG.cpp

2007-10-11 Thread Dan Gohman
Author: djg Date: Thu Oct 11 18:06:37 2007 New Revision: 42879 URL: http://llvm.org/viewvc/llvm-project?rev=42879view=rev Log: Add an ISD::FPOW node type. Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Modified:

[llvm-commits] [llvm] r42880 - in /llvm/trunk: include/llvm/CodeGen/RuntimeLibcalls.h lib/CodeGen/SelectionDAG/TargetLowering.cpp

2007-10-11 Thread Dan Gohman
Author: djg Date: Thu Oct 11 18:09:10 2007 New Revision: 42880 URL: http://llvm.org/viewvc/llvm-project?rev=42880view=rev Log: Add runtime library names for pow. Modified: llvm/trunk/include/llvm/CodeGen/RuntimeLibcalls.h llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp Modified:

[llvm-commits] [llvm] r42881 - in /llvm/trunk/lib/Target: ARM/ARMISelLowering.cpp Alpha/AlphaISelLowering.cpp IA64/IA64ISelLowering.cpp PowerPC/PPCISelLowering.cpp Sparc/SparcISelDAGToDAG.cpp X86/X86I

2007-10-11 Thread Dan Gohman
Author: djg Date: Thu Oct 11 18:21:31 2007 New Revision: 42881 URL: http://llvm.org/viewvc/llvm-project?rev=42881view=rev Log: Set ISD::FPOW to Expand. Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp

[llvm-commits] [llvm] r42882 - in /llvm/trunk/lib/CodeGen: AsmPrinter.cpp SelectionDAG/LegalizeDAG.cpp

2007-10-11 Thread Dale Johannesen
Author: johannes Date: Thu Oct 11 18:32:15 2007 New Revision: 42882 URL: http://llvm.org/viewvc/llvm-project?rev=42882view=rev Log: Implement ppc long double-uint conversion. Make ppc long double constants print. Modified: llvm/trunk/lib/CodeGen/AsmPrinter.cpp

Re: [llvm-commits] [llvm] r42864 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll

2007-10-11 Thread Devang Patel
On Oct 11, 2007, at 3:08 PM, Dan Gohman wrote: + ConstantInt *MemOpLength = dyn_castConstantInt(CI.getOperand(3)); + if (isaMemCpyInst(MI)) +if (MemOpLength) { Can you replace these two if statements with if (isaMemCpyInst(MI) MemOpLength) { ? Then the

[llvm-commits] [llvm] r42884 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

2007-10-11 Thread Dan Gohman
Author: djg Date: Thu Oct 11 18:57:53 2007 New Revision: 42884 URL: http://llvm.org/viewvc/llvm-project?rev=42884view=rev Log: Codegen support for vector intrinsics. Factor out the code that expands the nasty scalar code for unrolling vectors into a separate routine, teach it how to handle mixed

Re: [llvm-commits] [llvm] r42864 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll

2007-10-11 Thread Devang Patel
On Oct 11, 2007, at 3:26 PM, Dan Gohman wrote: Oops, looking at this a little more, isn't the Size operand always in straight bytes, and MTy always i8, just because of how llvm.memcpy is declared? yes. nice catch! Also, this code can be used for memmove as well as memcpy; since the load

[llvm-commits] [llvm] r42885 - in /llvm/trunk: include/llvm/Intrinsics.td lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/X86/vector-intrinsics.ll

2007-10-11 Thread Dan Gohman
Author: djg Date: Thu Oct 11 19:01:22 2007 New Revision: 42885 URL: http://llvm.org/viewvc/llvm-project?rev=42885view=rev Log: Add intrinsics for sin, cos, and pow. These use llvm_anyfloat_ty, and so may be overloaded with vector types. And add a testcase for codegen for these. Added:

Re: [llvm-commits] RFC: internal label names

2007-10-11 Thread Evan Cheng
On Oct 10, 2007, at 4:46 PM, Chris Lattner wrote: On Oct 10, 2007, at 12:41 PM, Dan Gohman wrote: 1. if the name is short, print it as you propose. 2. if the name is long, print it with a number and optionally with a subset of the name (last 10 chars?) This could be implemented by just

[llvm-commits] [llvm] r42888 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

2007-10-11 Thread Dale Johannesen
Author: johannes Date: Thu Oct 11 20:37:08 2007 New Revision: 42888 URL: http://llvm.org/viewvc/llvm-project?rev=42888view=rev Log: PPC long double. Implement a couple more conversions. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Modified:

[llvm-commits] [llvm] r42889 - /llvm/trunk/include/llvm/ADT/BitVector.h

2007-10-11 Thread Chris Lattner
Author: lattner Date: Thu Oct 11 22:48:59 2007 New Revision: 42889 URL: http://llvm.org/viewvc/llvm-project?rev=42889view=rev Log: make operator== work with non-equal sized bitvectors, as long as the extra bits are all zeros. This allows 010 and 01 to be treated as equal. Modified:

[llvm-commits] [llvm] r42890 - /llvm/trunk/test/Transforms/InstCombine/malloc3.ll

2007-10-11 Thread Chris Lattner
Author: lattner Date: Fri Oct 12 00:29:53 2007 New Revision: 42890 URL: http://llvm.org/viewvc/llvm-project?rev=42890view=rev Log: testcase for PR1728 Added: llvm/trunk/test/Transforms/InstCombine/malloc3.ll Added: llvm/trunk/test/Transforms/InstCombine/malloc3.ll URL:

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

2007-10-11 Thread Chris Lattner
Author: lattner Date: Fri Oct 12 00:30:59 2007 New Revision: 42891 URL: http://llvm.org/viewvc/llvm-project?rev=42891view=rev Log: Fix some 80 column violations. Fix DecomposeSimpleLinearExpr to handle simple constants better. Don't nuke gep(bitcast(allocation)) if the bitcast(allocation) will

Re: [llvm-commits] [llvm] r42885 - in /llvm/trunk: include/llvm/Intrinsics.td lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/X86/vector-intrinsics.ll

2007-10-11 Thread Chris Lattner
On Oct 11, 2007, at 5:01 PM, Dan Gohman wrote: Author: djg Date: Thu Oct 11 19:01:22 2007 New Revision: 42885 URL: http://llvm.org/viewvc/llvm-project?rev=42885view=rev Log: Add intrinsics for sin, cos, and pow. These use llvm_anyfloat_ty, and so may be overloaded with vector types.