[llvm-commits] Patch for X86 to use subregs

2007-07-28 Thread Christopher Lamb
This patch changes the X86 back end to use the new subreg operations for appropriate truncate and extend operations. This should allow regression testing of the subreg feature going forward, as it's now used in a public target.The patch passed DejaGnu and all of SingleSource on my x86 machine, but

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-28 Thread Evan Cheng
Very cool! I need to read it more carefully. But I see you are lowering zext to a single insert_subreg. Is that right? It won't zero out the top part, no? Evan Sent from my iPhone On Jul 28, 2007, at 12:17 AM, Christopher Lamb <[EMAIL PROTECTED] > wrote: This patch changes the X86 back e

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-28 Thread Evan Cheng
On Jul 28, 2007, at 12:17 AM, Christopher Lamb wrote: This patch changes the X86 back end to use the new subreg operations for appropriate truncate and extend operations. This should allow regression testing of the subreg feature going forward, as it's now used in a public target. The pa

[llvm-commits] [llvm] r40569 - /llvm/trunk/test/CFrontend/2007-06-18-SextAttrAggregate.c

2007-07-28 Thread Nick Lewycky
Author: nicholas Date: Sat Jul 28 11:43:10 2007 New Revision: 40569 URL: http://llvm.org/viewvc/llvm-project?rev=40569&view=rev Log: Make this explictly signed. Fixes PR1571. Modified: llvm/trunk/test/CFrontend/2007-06-18-SextAttrAggregate.c Modified: llvm/trunk/test/CFrontend/2007-06-18-Sex

Re: [llvm-commits] ScalarEvolution fix for treeadd

2007-07-28 Thread Nick Lewycky
Dan Gohman wrote: >>I'm not sure why, but it doesn't seem as promising as the previous test >>I had. Could it be that when comparing the PDF I should ignore blocks >>that are not part of the loop? > > If there are branches from outside the loop to blocks inside the loop > other than the loop heade

[llvm-commits] [llvm-gcc-4.2] r40570 - in /llvm-gcc-4.2/trunk: ModuleInfo.txt build-for-llvm-top.sh

2007-07-28 Thread Reid Spencer
Author: reid Date: Sat Jul 28 12:30:57 2007 New Revision: 40570 URL: http://llvm.org/viewvc/llvm-project?rev=40570&view=rev Log: Make it possible to build from llvm-top. Added: llvm-gcc-4.2/trunk/ModuleInfo.txt llvm-gcc-4.2/trunk/build-for-llvm-top.sh (with props) Added: llvm-gcc-4.2/t

[llvm-commits] [llvm-gcc-4.2] r40571 - in /llvm-gcc-4.2/trunk/gcc: llvm-backend.cpp toplev.c

2007-07-28 Thread Anton Korobeynikov
Author: asl Date: Sat Jul 28 13:28:30 2007 New Revision: 40571 URL: http://llvm.org/viewvc/llvm-project?rev=40571&view=rev Log: Minor PCH-related fixes (will be propagated to 4.0 soon): 1. Don't call finish_aliases_2(), when PCH are written 2. Properly initialize LLVM machinery, when PCHs are used

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-28 Thread Christopher Lamb
On Jul 28, 2007, at 1:48 AM, Evan Cheng wrote: Very cool! I need to read it more carefully. But I see you are lowering zext to a single insert_subreg. Is that right? It won't zero out the top part, no? It's only lowering (zext i32 to i64) to an insert_subreg on x86-64 where all writes t

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-28 Thread Christopher Lamb
On Jul 28, 2007, at 2:08 AM, Evan Cheng wrote: On Jul 28, 2007, at 12:17 AM, Christopher Lamb wrote: This patch changes the X86 back end to use the new subreg operations for appropriate truncate and extend operations. This should allow regression testing of the subreg feature going forw

[llvm-commits] [llvm] r40572 - /llvm/trunk/lib/Target/X86/X86RegisterInfo.td

2007-07-28 Thread Christopher Lamb
Author: clamb Date: Sat Jul 28 14:03:30 2007 New Revision: 40572 URL: http://llvm.org/viewvc/llvm-project?rev=40572&view=rev Log: Add register info needed to use subreg sets on X86. Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.td Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.td

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-28 Thread Christopher Lamb
On Jul 28, 2007, at 11:55 AM, Christopher Lamb wrote: On Jul 28, 2007, at 2:08 AM, Evan Cheng wrote: On Jul 28, 2007, at 12:17 AM, Christopher Lamb wrote: This patch changes the X86 back end to use the new subreg operations for appropriate truncate and extend operations. This should al

[llvm-commits] [llvm-gcc-4.2] r40573 - /llvm-gcc-4.2/trunk/build-for-llvm-top.sh

2007-07-28 Thread Reid Spencer
Author: reid Date: Sat Jul 28 14:44:03 2007 New Revision: 40573 URL: http://llvm.org/viewvc/llvm-project?rev=40573&view=rev Log: Make the build directory be build.llvm-gcc-4.2 instead of build.llvm-gcc-4.0 so it doesn't collide with the llvm-gcc-4.0 build. Modified: llvm-gcc-4.2/trunk/build-f

[llvm-commits] [llvm-gcc-4.2] r40574 - /llvm-gcc-4.2/trunk/ModuleInfo.txt

2007-07-28 Thread Reid Spencer
Author: reid Date: Sat Jul 28 14:46:50 2007 New Revision: 40574 URL: http://llvm.org/viewvc/llvm-project?rev=40574&view=rev Log: Use 4.2 build directory instead of 4.0 Modified: llvm-gcc-4.2/trunk/ModuleInfo.txt Modified: llvm-gcc-4.2/trunk/ModuleInfo.txt URL: http://llvm.org/viewvc/llvm-pr

[llvm-commits] [llvm-gcc-4.2] r40575 - in /llvm-gcc-4.2/trunk/libstdc++-v3/libsupc++: eh_personality.cc unwind-cxx.h

2007-07-28 Thread Anton Korobeynikov
Author: asl Date: Sat Jul 28 15:15:55 2007 New Revision: 40575 URL: http://llvm.org/viewvc/llvm-project?rev=40575&view=rev Log: Recover from bad merge Modified: llvm-gcc-4.2/trunk/libstdc++-v3/libsupc++/eh_personality.cc llvm-gcc-4.2/trunk/libstdc++-v3/libsupc++/unwind-cxx.h Modified: ll

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

2007-07-28 Thread Anton Korobeynikov
Author: asl Date: Sat Jul 28 15:17:33 2007 New Revision: 40576 URL: http://llvm.org/viewvc/llvm-project?rev=40576&view=rev Log: Add dummy placeholders for some EH GIMPLE trees Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp llvm-gcc-4.2/trunk/gcc/llvm-internal.h Modified: llvm-gcc-4.2/

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-28 Thread Evan Cheng
On Jul 28, 2007, at 11:52 AM, Christopher Lamb <[EMAIL PROTECTED] > wrote: On Jul 28, 2007, at 1:48 AM, Evan Cheng wrote: Very cool! I need to read it more carefully. But I see you are lowering zext to a single insert_subreg. Is that right? It won't zero out the top part, no? It's only

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-28 Thread Evan Cheng
On Jul 28, 2007, at 11:55 AM, Christopher Lamb <[EMAIL PROTECTED] > wrote: On Jul 28, 2007, at 2:08 AM, Evan Cheng wrote: On Jul 28, 2007, at 12:17 AM, Christopher Lamb wrote: This patch changes the X86 back end to use the new subreg operations for appropriate truncate and extend oper

Re: [llvm-commits] Patch for X86 to use subregs

2007-07-28 Thread Christopher Lamb
On Jul 28, 2007, at 2:26 PM, Evan Cheng wrote: On Jul 28, 2007, at 11:52 AM, Christopher Lamb <[EMAIL PROTECTED]> wrote: On Jul 28, 2007, at 1:48 AM, Evan Cheng wrote: Very cool! I need to read it more carefully. But I see you are lowering zext to a single insert_subreg. Is that righ

[llvm-commits] [llvm] r40578 - in /llvm/trunk/lib/Target/X86: X86ATTAsmPrinter.cpp X86CodeEmitter.cpp X86ISelDAGToDAG.cpp X86InstrInfo.td X86InstrX86-64.td X86IntelAsmPrinter.cpp

2007-07-28 Thread Christopher Lamb
Author: clamb Date: Sat Jul 28 20:24:57 2007 New Revision: 40578 URL: http://llvm.org/viewvc/llvm-project?rev=40578&view=rev Log: Change the x86 backend to use extract_subreg for truncation operations. Passes DejaGnu, SingleSource and MultiSource. Modified: llvm/trunk/lib/Target/X86/X86ATTAs

[llvm-commits] X86-64 subreg patch

2007-07-28 Thread Christopher Lamb
This patch causes anyext and zext to be code generated as insert_subreg on x86-64. It passes all tests on my system, but my system isn't x86-64. If someone would give it a run that'd be appreciated.Thanks --Christopher Lamb x86_64_zext_subreg.patch Description: Binary data ___