Re: [llvm-commits] [llvm] r45850 - /llvm/trunk/l ib/VMCore/Verifier.cpp

2008-01-16 Thread Duncan Sands
Hi Chris, > ArgPromotion does do this, and I added a testcase to verify it. It > looks like it recomputes the Function's param attrs perfectly and just > applies that attr list to all calls. try this example. Argpromotion deletes the zeroext attribute on the call. ; RUN: llvm-as < %s | opt

[llvm-commits] [llvm-gcc-4.2] r46067 - /llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp

2008-01-16 Thread Evan Cheng
Author: evancheng Date: Wed Jan 16 02:21:18 2008 New Revision: 46067 URL: http://llvm.org/viewvc/llvm-project?rev=46067&view=rev Log: Testing for parameter passing, not for return value. Modified: llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp Modified: llvm-gcc-4.2/trunk/gcc/config/i386/l

[llvm-commits] [llvm-gcc-4.0] r46068 - /llvm-gcc-4.0/trunk/gcc/llvm-abi.h

2008-01-16 Thread Duncan Sands
Author: baldrick Date: Wed Jan 16 04:25:43 2008 New Revision: 46068 URL: http://llvm.org/viewvc/llvm-project?rev=46068&view=rev Log: Fix warning: extra tokens at end of #ifndef directive Modified: llvm-gcc-4.0/trunk/gcc/llvm-abi.h Modified: llvm-gcc-4.0/trunk/gcc/llvm-abi.h URL: http://llvm

[llvm-commits] [llvm-gcc-4.2] r46069 - /llvm-gcc-4.2/trunk/gcc/ada/utils.c

2008-01-16 Thread Duncan Sands
Author: baldrick Date: Wed Jan 16 08:43:39 2008 New Revision: 46069 URL: http://llvm.org/viewvc/llvm-project?rev=46069&view=rev Log: Mark the Ada exception begin handler 'nothrow'. This can reduce the amount of eh code output, and is safe since currently the handler... does nothing at all! Modifi

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

2008-01-16 Thread Chris Lattner
Author: lattner Date: Wed Jan 16 11:59:31 2008 New Revision: 46072 URL: http://llvm.org/viewvc/llvm-project?rev=46072&view=rev Log: Fix a ppc long double regression I introduced yesterday due to a simplification. This fixes automotive-basicmath on PPC. Modified: llvm/trunk/lib/CodeGen/Select

[llvm-commits] [llvm] r46073 - /llvm/trunk/test/CodeGen/PowerPC/longdbl-truncate.ll

2008-01-16 Thread Chris Lattner
Author: lattner Date: Wed Jan 16 12:03:52 2008 New Revision: 46073 URL: http://llvm.org/viewvc/llvm-project?rev=46073&view=rev Log: add testcase for regression Added: llvm/trunk/test/CodeGen/PowerPC/longdbl-truncate.ll Added: llvm/trunk/test/CodeGen/PowerPC/longdbl-truncate.ll URL: http://l

Re: [llvm-commits] [llvm] r45850 - /llvm/trunk/lib/VMCore/Verifier.cpp

2008-01-16 Thread Chris Lattner
On Jan 16, 2008, at 12:07 AM, Duncan Sands wrote: > Hi Chris, >> ArgPromotion does do this, and I added a testcase to verify it. It >> looks like it recomputes the Function's param attrs perfectly and >> just >> applies that attr list to all calls. > > try this example. Argpromotion deletes the

[llvm-commits] [llvm-gcc-4.2] r46077 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

2008-01-16 Thread Bill Wendling
Author: void Date: Wed Jan 16 12:49:47 2008 New Revision: 46077 URL: http://llvm.org/viewvc/llvm-project?rev=46077&view=rev Log: Use the big endian check already in llvm/System/Host.h. Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp URL: h

Re: [llvm-commits] [llvm-gcc-4.2] r46039 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

2008-01-16 Thread Bill Wendling
On Jan 15, 2008 11:56 PM, Duncan Sands <[EMAIL PROTECTED]> wrote: > Hi Bill, > > > +// Determine endianness of host machine. > > +union { > > + int x; > > + char y[sizeof(int)]; > > +} u; > > +u.x = 1; > > +bool BigEndian = (u.y[0] != 1); > > how about using bigEndianH

[llvm-commits] [llvm] r46088 - in /llvm/trunk: include/llvm/CodeGen/MachineModuleInfo.h lib/CodeGen/DwarfWriter.cpp lib/CodeGen/MachineModuleInfo.cpp

2008-01-16 Thread Dale Johannesen
Author: johannes Date: Wed Jan 16 13:59:28 2008 New Revision: 46088 URL: http://llvm.org/viewvc/llvm-project?rev=46088&view=rev Log: Do not mark EH tables no-dead-strip unless the associated function is so marked. Modified: llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h llvm/trunk/l

[llvm-commits] [llvm-gcc-4.2] r46089 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

2008-01-16 Thread Chris Lattner
Author: lattner Date: Wed Jan 16 15:10:05 2008 New Revision: 46089 URL: http://llvm.org/viewvc/llvm-project?rev=46089&view=rev Log: Wire up __builtin_bswap32/64 to llvm.bswap. This is a 4.2-only feature. Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Modified: llvm-gcc-4.2/trunk/gcc/llv

[llvm-commits] [llvm] r46090 - /llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp

2008-01-16 Thread Chris Lattner
Author: lattner Date: Wed Jan 16 15:35:43 2008 New Revision: 46090 URL: http://llvm.org/viewvc/llvm-project?rev=46090&view=rev Log: Handle attribute(used) global variables that are i8. Modified: llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp Modified: llvm/trunk/lib/Transforms/IPO/StripSymbo

[llvm-commits] [llvm-gcc-4.2] r46094 - /llvm-gcc-4.2/trunk/build_gcc

2008-01-16 Thread Bill Wendling
Author: void Date: Wed Jan 16 16:18:26 2008 New Revision: 46094 URL: http://llvm.org/viewvc/llvm-project?rev=46094&view=rev Log: Some of the drivers are named foo-bar-qux-llvm-g++ instead of foo-bar-qux-g++. Get both of them as is required. Modified: llvm-gcc-4.2/trunk/build_gcc Modified: ll

[llvm-commits] [llvm-gcc-4.2] r46097 - /llvm-gcc-4.2/trunk/gcc/ada/decl.c

2008-01-16 Thread Duncan Sands
Author: baldrick Date: Wed Jan 16 16:50:04 2008 New Revision: 46097 URL: http://llvm.org/viewvc/llvm-project?rev=46097&view=rev Log: Restore a placeholder substitution that was accidentally dropped in revision 45523. The testcase is FrontendAda/placeholder.adb. Modified: llvm-gcc-4.2/trunk/g

[llvm-commits] [llvm] r46098 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/2008-01-16-Trampoline.ll

2008-01-16 Thread Duncan Sands
Author: baldrick Date: Wed Jan 16 16:55:25 2008 New Revision: 46098 URL: http://llvm.org/viewvc/llvm-project?rev=46098&view=rev Log: Trampoline support for x86-64. This looks like it should work, but I have no machine to test it on. Committed because it will at least cause no harm, and maybe som

Re: [llvm-commits] [llvm] r45850 - /llvm/trunk/l ib/VMCore/Verifier.cpp

2008-01-16 Thread Duncan Sands
Hi Chris, > > try this example. Argpromotion deletes the zeroext attribute on the > > call. > > Right, it deletes it because the attr is on the call not the > function. I can make this work, but shouldn't the attr also be on the > function? the attributes on the call determine (for examp

[llvm-commits] [llvm] r46099 - in /llvm/trunk: lib/CodeGen/SelectionDAG/DAGCombiner.cpp test/CodeGen/X86/2008-01-16-InvalidDAGCombineXform.ll

2008-01-16 Thread Evan Cheng
Author: evancheng Date: Wed Jan 16 17:11:54 2008 New Revision: 46099 URL: http://llvm.org/viewvc/llvm-project?rev=46099&view=rev Log: Fixes a nasty dag combiner bug that causes a bunch of tests to fail at -O0. It's not safe to use the two value CombineTo variant to combine away a dead load. e.g.

Re: [llvm-commits] [llvm] r45850 - /llvm/trunk/lib/VMCore/Verifier.cpp

2008-01-16 Thread Chris Lattner
On Jan 16, 2008, at 2:58 PM, Duncan Sands wrote: > Hi Chris, > >>> try this example. Argpromotion deletes the zeroext attribute on the >>> call. >> >> Right, it deletes it because the attr is on the call not the >> function. I can make this work, but shouldn't the attr also be on >> the >> fu

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

2008-01-16 Thread Evan Cheng
Author: evancheng Date: Wed Jan 16 18:35:26 2008 New Revision: 46104 URL: http://llvm.org/viewvc/llvm-project?rev=46104&view=rev Log: Replace std::vector with BitVector. Modified: llvm/trunk/lib/CodeGen/RegAllocLocal.cpp Modified: llvm/trunk/lib/CodeGen/RegAllocLocal.cpp URL: http://llvm.or

[llvm-commits] [llvm] r46108 - in /llvm/trunk: lib/Transforms/IPO/ArgumentPromotion.cpp test/Transforms/ArgumentPromotion/attrs.ll

2008-01-16 Thread Chris Lattner
Author: lattner Date: Wed Jan 16 19:17:03 2008 New Revision: 46108 URL: http://llvm.org/viewvc/llvm-project?rev=46108&view=rev Log: Fix arg promotion to propagate the correct attrs on the calls to promoted functions. This is important for varargs calls in particular. Thanks to duncan for provid

[llvm-commits] [llvm-gcc-4.2] r46110 - /llvm-gcc-4.2/trunk/build_gcc

2008-01-16 Thread Devang Patel
Author: dpatel Date: Wed Jan 16 19:41:18 2008 New Revision: 46110 URL: http://llvm.org/viewvc/llvm-project?rev=46110&view=rev Log: Fix more symlinks. Avoid deep links that assumes /Developer as the root installation folder. Modified: llvm-gcc-4.2/trunk/build_gcc Modified: llvm-gcc-4.2/trun

[llvm-commits] [llvm] r46111 - in /llvm/trunk: lib/CodeGen/RegAllocLocal.cpp test/CodeGen/X86/2008-01-16-FPStackifierAssert.ll

2008-01-16 Thread Evan Cheng
Author: evancheng Date: Wed Jan 16 20:08:17 2008 New Revision: 46111 URL: http://llvm.org/viewvc/llvm-project?rev=46111&view=rev Log: When a live virtual register is being clobbered by an implicit def, it is spilled and the spill is its kill. However, if the local allocator has determined the reg

[llvm-commits] [llvm] r46112 - /llvm/trunk/utils/buildit/build_llvm

2008-01-16 Thread Devang Patel
Author: dpatel Date: Wed Jan 16 20:10:08 2008 New Revision: 46112 URL: http://llvm.org/viewvc/llvm-project?rev=46112&view=rev Log: Enable CBE Modified: llvm/trunk/utils/buildit/build_llvm Modified: llvm/trunk/utils/buildit/build_llvm URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils

[llvm-commits] [llvm] r46113 - /llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp

2008-01-16 Thread Evan Cheng
Author: evancheng Date: Wed Jan 16 22:18:54 2008 New Revision: 46113 URL: http://llvm.org/viewvc/llvm-project?rev=46113&view=rev Log: DAE bug fix. Don't lose parameter attributes on vararg arguments. Modified: llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp Modified: llvm/trunk/lib

[llvm-commits] [llvm] r46114 - /llvm/branches/release_22/

2008-01-16 Thread Tanya Lattner
Author: tbrethou Date: Wed Jan 16 23:09:49 2008 New Revision: 46114 URL: http://llvm.org/viewvc/llvm-project?rev=46114&view=rev Log: Creating 2.2 release branch Added: llvm/branches/release_22/ - copied from r46113, llvm/trunk/ ___ llvm-commi

[llvm-commits] [llvm-gcc-4.0] r46115 - /llvm-gcc-4.0/branches/release_22/

2008-01-16 Thread Tanya Lattner
Author: tbrethou Date: Wed Jan 16 23:11:03 2008 New Revision: 46115 URL: http://llvm.org/viewvc/llvm-project?rev=46115&view=rev Log: Creating 2.2 release branch. Added: llvm-gcc-4.0/branches/release_22/ - copied from r46114, llvm-gcc-4.0/trunk/ _

[llvm-commits] [llvm-gcc-4.2] r46116 - /llvm-gcc-4.2/branches/release_22/

2008-01-16 Thread Tanya Lattner
Author: tbrethou Date: Wed Jan 16 23:11:31 2008 New Revision: 46116 URL: http://llvm.org/viewvc/llvm-project?rev=46116&view=rev Log: Creating 2.2 release branch. Added: llvm-gcc-4.2/branches/release_22/ - copied from r46115, llvm-gcc-4.2/trunk/ _

[llvm-commits] [test-suite] r46117 - /test-suite/branches/release_22/

2008-01-16 Thread Tanya Lattner
Author: tbrethou Date: Wed Jan 16 23:12:22 2008 New Revision: 46117 URL: http://llvm.org/viewvc/llvm-project?rev=46117&view=rev Log: Creating 2.2 release branch. Added: test-suite/branches/release_22/ - copied from r46116, test-suite/trunk/ _

[llvm-commits] [llvm] r46120 - /llvm/trunk/LICENSE.TXT

2008-01-16 Thread Tanya Lattner
Author: tbrethou Date: Wed Jan 16 23:57:59 2008 New Revision: 46120 URL: http://llvm.org/viewvc/llvm-project?rev=46120&view=rev Log: Update license for current year. Modified: llvm/trunk/LICENSE.TXT Modified: llvm/trunk/LICENSE.TXT URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/LICENSE

[llvm-commits] [llvm] r46121 - in /llvm/branches/release_22: LICENSE.TXT autoconf/configure.ac configure

2008-01-16 Thread Tanya Lattner
Author: tbrethou Date: Thu Jan 17 00:01:52 2008 New Revision: 46121 URL: http://llvm.org/viewvc/llvm-project?rev=46121&view=rev Log: Update for current year. Modified: llvm/branches/release_22/LICENSE.TXT llvm/branches/release_22/autoconf/configure.ac llvm/branches/release_22/configur

[llvm-commits] [test-suite] r46122 - in /test-suite/branches/release_22: autoconf/configure.ac configure

2008-01-16 Thread Tanya Lattner
Author: tbrethou Date: Thu Jan 17 00:05:34 2008 New Revision: 46122 URL: http://llvm.org/viewvc/llvm-project?rev=46122&view=rev Log: Set version to 2.2 Modified: test-suite/branches/release_22/autoconf/configure.ac test-suite/branches/release_22/configure Modified: test-suite/branches/re

[llvm-commits] [test-suite] r46123 - in /test-suite/trunk: autoconf/configure.ac configure

2008-01-16 Thread Tanya Lattner
Author: tbrethou Date: Thu Jan 17 00:08:49 2008 New Revision: 46123 URL: http://llvm.org/viewvc/llvm-project?rev=46123&view=rev Log: Update version to 2.3svn Modified: test-suite/trunk/autoconf/configure.ac test-suite/trunk/configure Modified: test-suite/trunk/autoconf/configure.ac URL:

[llvm-commits] [llvm] r46124 - /llvm/trunk/test/CodeGen/Generic/v-split.ll

2008-01-16 Thread Chris Lattner
Author: lattner Date: Thu Jan 17 00:54:09 2008 New Revision: 46124 URL: http://llvm.org/viewvc/llvm-project?rev=46124&view=rev Log: add testcase that has been sitting in my tree for awhile. Added: llvm/trunk/test/CodeGen/Generic/v-split.ll Added: llvm/trunk/test/CodeGen/Generic/v-split.ll UR

[llvm-commits] [llvm] r46125 - in /llvm/trunk: include/llvm/CodeGen/ lib/CodeGen/SelectionDAG/ lib/Target/IA64/ lib/Target/PowerPC/ lib/Target/X86/

2008-01-16 Thread Chris Lattner
Author: lattner Date: Thu Jan 17 01:00:52 2008 New Revision: 46125 URL: http://llvm.org/viewvc/llvm-project?rev=46125&view=rev Log: * Introduce a new SelectionDAG::getIntPtrConstant method and switch various codegen pieces and the X86 backend over to using it. * Add some comments to Selection

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

2008-01-16 Thread Chris Lattner
Author: lattner Date: Thu Jan 17 01:20:38 2008 New Revision: 46126 URL: http://llvm.org/viewvc/llvm-project?rev=46126&view=rev Log: code cleanups, no functionality change. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.

[llvm-commits] [llvm] r46127 - /llvm/trunk/test/Transforms/DeadArgElim/2008-01-16-VarargsParamAttrs.ll

2008-01-16 Thread Evan Cheng
Author: evancheng Date: Thu Jan 17 01:26:31 2008 New Revision: 46127 URL: http://llvm.org/viewvc/llvm-project?rev=46127&view=rev Log: Test case for varargs parameter attribute issue I just fixed. Added: llvm/trunk/test/Transforms/DeadArgElim/2008-01-16-VarargsParamAttrs.ll Added: llvm/trunk/

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

2008-01-16 Thread Chris Lattner
Author: lattner Date: Thu Jan 17 01:30:38 2008 New Revision: 46128 URL: http://llvm.org/viewvc/llvm-project?rev=46128&view=rev Log: add some helper methods. Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h URL: http: