[llvm-commits] [llvm] r44676 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/2007-12-05-VectorShuffle.ll test/CodeGen/X86/vec_shuffle-12.ll

2007-12-07 Thread Evan Cheng
Author: evancheng Date: Fri Dec 7 02:07:39 2007 New Revision: 44676 URL: http://llvm.org/viewvc/llvm-project?rev=44676&view=rev Log: Much improved v8i16 shuffles. (Step 1). Added: llvm/trunk/test/CodeGen/X86/vec_shuffle-12.ll Removed: llvm/trunk/test/CodeGen/X86/2007-12-05-VectorShuffle.

Re: [llvm-commits] [llvm] r44676 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/2007-12-05-VectorShuffle.ll test/CodeGen/X86/vec_shuffle-12.ll

2007-12-07 Thread Chris Lattner
Hey Evan, > +++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Dec 7 > 02:07:39 2007 > @@ -2754,10 +2754,33 @@ >} > >std::swap(V1, V2); > - Mask = DAG.getNode(ISD::BUILD_VECTOR, MaskVT, &MaskVec[0], > MaskVec.size()); > + Mask = DAG.getNode(ISD::BUILD_VECTOR, MaskVT, &MaskVec[0],

[llvm-commits] [poolalloc] r44677 - /poolalloc/trunk/include/poolalloc/PoolAllocate.h

2007-12-07 Thread John Criswell
Author: criswell Date: Fri Dec 7 12:05:12 2007 New Revision: 44677 URL: http://llvm.org/viewvc/llvm-project?rev=44677&view=rev Log: Do not use an absolute path to find the header file from SAFECode. The configure script now sets up -I options to the compiler to help us find it. Modified: po

[llvm-commits] [poolalloc] r44679 - /poolalloc/trunk/lib/DSA/DataStructure.cpp

2007-12-07 Thread John Criswell
Author: criswell Date: Fri Dec 7 12:06:47 2007 New Revision: 44679 URL: http://llvm.org/viewvc/llvm-project?rev=44679&view=rev Log: Implement the isPointerType() method found in the DS namespace. Modified: poolalloc/trunk/lib/DSA/DataStructure.cpp Modified: poolalloc/trunk/lib/DSA/DataStruc

[llvm-commits] [poolalloc] r44678 - /poolalloc/trunk/include/dsa/DataStructure.h

2007-12-07 Thread John Criswell
Author: criswell Date: Fri Dec 7 12:06:17 2007 New Revision: 44678 URL: http://llvm.org/viewvc/llvm-project?rev=44678&view=rev Log: Comment out the declarations of deleteValue() and copyValue() for the TDDataStructure pass. These methods are never defined and are uneeded. Need review from Andrew

Re: [llvm-commits] [llvm] r44687 - in /llvm/trunk: include/llvm/CodeGen/Passes.h lib/CodeGen/LLVMTargetMachine.cpp lib/CodeGen/MachineLICM.cpp lib/Target/PowerPC/PPCInstrInfo.td

2007-12-07 Thread Bill Wendling
On Dec 7, 2007 4:42 PM, Evan Cheng <[EMAIL PROTECTED]> wrote: > > Nicely done! > Thx! :-) > > +// Map the def of a virtual register to the machine instruction. > > +std::map VRegDefs; > > Consider using IndexedMap. > Okay. > > +bool CanHoistInst(MachineInstr &I) const { > > + con

[llvm-commits] [llvm] r44700 - in /llvm/trunk: lib/Target/PowerPC/PPCISelLowering.cpp lib/Target/PowerPC/PPCISelLowering.h lib/Target/PowerPC/PPCMachineFunctionInfo.h lib/Target/PowerPC/PPCRegisterInf

2007-12-07 Thread Chris Lattner
Author: lattner Date: Sat Dec 8 00:59:59 2007 New Revision: 44700 URL: http://llvm.org/viewvc/llvm-project?rev=44700&view=rev Log: implement __builtin_return_addr(0) on ppc. Added: llvm/trunk/test/CodeGen/PowerPC/retaddr.ll Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp

[llvm-commits] [llvm] r44703 - /llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp

2007-12-07 Thread Chris Lattner
Author: lattner Date: Sat Dec 8 01:22:58 2007 New Revision: 44703 URL: http://llvm.org/viewvc/llvm-project?rev=44703&view=rev Log: aesthetic changes, no functionality change. Evan, it's not clear what 'Available' is, please add a comment near it and rename it if appropriate. Modified: llvm/

[llvm-commits] [llvm] r44701 - in /llvm/trunk: lib/Target/PowerPC/PPCRegisterInfo.cpp test/CodeGen/PowerPC/retaddr.ll

2007-12-07 Thread Chris Lattner
Author: lattner Date: Sat Dec 8 01:04:58 2007 New Revision: 44701 URL: http://llvm.org/viewvc/llvm-project?rev=44701&view=rev Log: Fix a significant code quality regression I introduced on PPC64 quite a while ago. We now produce: _foo: mflr r0 std r0, 16(r1) ld r2, 16(r

[llvm-commits] [llvm] r44699 - in /llvm/trunk/lib/Target/PowerPC: PPCMachineFunctionInfo.h PPCRegisterInfo.cpp PPCRegisterInfo.h

2007-12-07 Thread Chris Lattner
Author: lattner Date: Sat Dec 8 00:39:11 2007 New Revision: 44699 URL: http://llvm.org/viewvc/llvm-project?rev=44699&view=rev Log: refactor some code to avoid overloading the name 'usesLR' in different places to mean different things. Document what the one in PPCFunctionInfo means and when it i

[llvm-commits] [test-suite] r44698 - /test-suite/trunk/Makefile.programs

2007-12-07 Thread Chris Lattner
Author: lattner Date: Fri Dec 7 23:00:57 2007 New Revision: 44698 URL: http://llvm.org/viewvc/llvm-project?rev=44698&view=rev Log: Enable machine-licm for ppc beta. Modified: test-suite/trunk/Makefile.programs Modified: test-suite/trunk/Makefile.programs URL: http://llvm.org/viewvc/llvm-pr

[llvm-commits] [llvm] r44697 - /llvm/trunk/include/llvm/InstrTypes.h

2007-12-07 Thread Chris Lattner
Author: lattner Date: Fri Dec 7 22:37:52 2007 New Revision: 44697 URL: http://llvm.org/viewvc/llvm-project?rev=44697&view=rev Log: Implement correct isa, problem reported by "ST". Modified: llvm/trunk/include/llvm/InstrTypes.h Modified: llvm/trunk/include/llvm/InstrTypes.h URL: http://llvm

[llvm-commits] [llvm] r44696 - /llvm/trunk/lib/CodeGen/MachineLICM.cpp

2007-12-07 Thread Bill Wendling
Author: void Date: Fri Dec 7 19:47:01 2007 New Revision: 44696 URL: http://llvm.org/viewvc/llvm-project?rev=44696&view=rev Log: Incorporated comments from Evan and Chris: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071203/056043.html http://lists.cs.uiuc.edu/pipermail/llvm-comm

[llvm-commits] [llvm] r44695 - in /llvm/trunk: include/llvm/Analysis/MemoryDependenceAnalysis.h lib/Analysis/MemoryDependenceAnalysis.cpp lib/Transforms/Scalar/GVN.cpp

2007-12-07 Thread Owen Anderson
Author: resistor Date: Fri Dec 7 19:37:09 2007 New Revision: 44695 URL: http://llvm.org/viewvc/llvm-project?rev=44695&view=rev Log: Fix several cache coherence bugs in MemDep/GVN that were found. Also add some (disabled) debugging code to make such problems easier to diagnose in the future, wri

Re: [llvm-commits] [llvm] r44687 - in /llvm/trunk: include/llvm/CodeGen/Passes.h lib/CodeGen/LLVMTargetMachine.cpp lib/CodeGen/MachineLICM.cpp lib/Target/PowerPC/PPCInstrInfo.td

2007-12-07 Thread Chris Lattner
>> +// Visit all of the instructions of the loop. We want to visit >> the subloops >> +// first, though, so that we can hoist their invariants first >> into their >> +// containing loop before we process that loop. >> +SmallVector Loops; >> +GatherAllLoops(L, Loops); > > Seems t

[llvm-commits] [llvm] r44694 - /llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp

2007-12-07 Thread Evan Cheng
Author: evancheng Date: Fri Dec 7 19:01:07 2007 New Revision: 44694 URL: http://llvm.org/viewvc/llvm-project?rev=44694&view=rev Log: Doh Modified: llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp Modified: llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp URL: http://llvm.org/viewvc/llvm-project/

Re: [llvm-commits] [llvm] r44687 - in /llvm/trunk: include/llvm/CodeGen/Passes.h lib/CodeGen/LLVMTargetMachine.cpp lib/CodeGen/MachineLICM.cpp lib/Target/PowerPC/PPCInstrInfo.td

2007-12-07 Thread Chris Lattner
On Dec 7, 2007, at 1:42 PM, Bill Wendling wrote: > Author: void > Date: Fri Dec 7 15:42:31 2007 > New Revision: 44687 > > URL: http://llvm.org/viewvc/llvm-project?rev=44687&view=rev > Log: > Initial commit of the machine code LICM pass. It successfully > hoists this: > > _foo: > li r2,

[llvm-commits] [llvm] r44687 - in /llvm/trunk: include/llvm/CodeGen/Passes.h lib/CodeGen/LLVMTargetMachine.cpp lib/CodeGen/MachineLICM.cpp lib/Target/PowerPC/PPCInstrInfo.td

2007-12-07 Thread Bill Wendling
Author: void Date: Fri Dec 7 15:42:31 2007 New Revision: 44687 URL: http://llvm.org/viewvc/llvm-project?rev=44687&view=rev Log: Initial commit of the machine code LICM pass. It successfully hoists this: _foo: li r2, 0 LBB1_1: ; bb li r5, 0 stw r5, 0(r3) addi r2, r

[llvm-commits] [poolalloc] r44683 - /poolalloc/trunk/include/dsa/DataStructure.h

2007-12-07 Thread John Criswell
Author: criswell Date: Fri Dec 7 15:05:23 2007 New Revision: 44683 URL: http://llvm.org/viewvc/llvm-project?rev=44683&view=rev Log: Removed deleteValue() and copyValue() from TDDataStructure; these methods should be implemented by the base class. Modified: poolalloc/trunk/include/dsa/DataStr

[llvm-commits] [poolalloc] r44680 - in /poolalloc/trunk/lib: DSA/Makefile PoolAllocate/Makefile

2007-12-07 Thread John Criswell
Author: criswell Date: Fri Dec 7 12:07:27 2007 New Revision: 44680 URL: http://llvm.org/viewvc/llvm-project?rev=44680&view=rev Log: Build relinked libraries for the SAFECode tool. Modified: poolalloc/trunk/lib/DSA/Makefile poolalloc/trunk/lib/PoolAllocate/Makefile Modified: poolalloc/tr

Re: [llvm-commits] [llvm] r44687 - in /llvm/trunk: include/llvm/CodeGen/Passes.h lib/CodeGen/LLVMTargetMachine.cpp lib/CodeGen/MachineLICM.cpp lib/Target/PowerPC/PPCInstrInfo.td

2007-12-07 Thread Bill Wendling
On Dec 7, 2007 5:01 PM, Chris Lattner <[EMAIL PROTECTED]> wrote: > >> +// Visit all of the instructions of the loop. We want to visit > >> the subloops > >> +// first, though, so that we can hoist their invariants first > >> into their > >> +// containing loop before we process that loo

Re: [llvm-commits] [llvm] r44687 - in /llvm/trunk: include/llvm/CodeGen/Passes.h lib/CodeGen/LLVMTargetMachine.cpp lib/CodeGen/MachineLICM.cpp lib/Target/PowerPC/PPCInstrInfo.td

2007-12-07 Thread Chris Lattner
> But when I set the alignment of the loop in main to 8, it got > slightly faster: > > $ time ./t.new > > real 0m15.090s > user 0m15.079s > sys 0m0.010s > > So there's some type of alignment thing that's getting in the way, but > it's encouraging for an initial pass that moved 3 instructions

[llvm-commits] [llvm] r44692 - /llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp

2007-12-07 Thread Evan Cheng
Author: evancheng Date: Fri Dec 7 19:00:31 2007 New Revision: 44692 URL: http://llvm.org/viewvc/llvm-project?rev=44692&view=rev Log: Fix a compilation warning. Modified: llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp Modified: llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp URL: http://llvm.o

[llvm-commits] [llvm-gcc-4.0] r44689 - /llvm-gcc-4.0/trunk/build_gcc

2007-12-07 Thread Bill Wendling
Author: void Date: Fri Dec 7 18:39:04 2007 New Revision: 44689 URL: http://llvm.org/viewvc/llvm-project?rev=44689&view=rev Log: Backport driver-driver linkage hack from 4.2 Modified: llvm-gcc-4.0/trunk/build_gcc Modified: llvm-gcc-4.0/trunk/build_gcc URL: http://llvm.org/viewvc/llvm-projec

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

2007-12-07 Thread Evan Cheng
Author: evancheng Date: Fri Dec 7 15:30:01 2007 New Revision: 44686 URL: http://llvm.org/viewvc/llvm-project?rev=44686&view=rev Log: Add comment. Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp URL: http://llvm.org/viewvc/llvm

[llvm-commits] [llvm] r44702 - in /llvm/trunk: include/llvm/Target/TargetInstrInfo.h lib/CodeGen/LiveIntervalAnalysis.cpp lib/CodeGen/MachineLICM.cpp lib/Target/X86/X86InstrInfo.cpp lib/Target/X86/X86

2007-12-07 Thread Bill Wendling
Author: void Date: Sat Dec 8 01:17:56 2007 New Revision: 44702 URL: http://llvm.org/viewvc/llvm-project?rev=44702&view=rev Log: Renaming: isTriviallyReMaterializable -> hasNoSideEffects isReallyTriviallyReMaterializable -> isTriviallyReMaterializable Modified: llvm/trunk/include/llvm/Ta

[llvm-commits] [llvm] r44690 - /llvm/trunk/win32/CodeGen/CodeGen.vcproj

2007-12-07 Thread Chuck Rose III
Author: cfr Date: Fri Dec 7 18:53:13 2007 New Revision: 44690 URL: http://llvm.org/viewvc/llvm-project?rev=44690&view=rev Log: Adding MachineLoopInfo.h,.cpp and MachineLICP.cpp to VStudio build Modified: llvm/trunk/win32/CodeGen/CodeGen.vcproj Modified: llvm/trunk/win32/CodeGen/CodeGen.vcpr

[llvm-commits] [llvm] r44691 - /llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp

2007-12-07 Thread Evan Cheng
Author: evancheng Date: Fri Dec 7 19:00:21 2007 New Revision: 44691 URL: http://llvm.org/viewvc/llvm-project?rev=44691&view=rev Log: Fix a compilation warning. Modified: llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp Modified: llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp URL: http:

Re: [llvm-commits] [llvm] r44687 - in /llvm/trunk: include/llvm/CodeGen/Passes.h lib/CodeGen/LLVMTargetMachine.cpp lib/CodeGen/MachineLICM.cpp lib/Target/PowerPC/PPCInstrInfo.td

2007-12-07 Thread Bill Wendling
On Dec 7, 2007 2:24 PM, Chris Lattner <[EMAIL PROTECTED]> wrote: > > I know you're kidding, but have you benchmarked this on the G5? In > this specific case, "foo" is probably MUCH faster because the loop is > one dispatch group instead of two (I think). :) > It made this program slower: $ cat t

Re: [llvm-commits] [llvm] r44676 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/2007-12-05-VectorShuffle.ll test/CodeGen/X86/vec_shuffle-12.ll

2007-12-07 Thread Evan Cheng
On Dec 7, 2007, at 8:13 AM, Chris Lattner wrote: > Hey Evan, > >> +++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Dec 7 >> 02:07:39 2007 >> @@ -2754,10 +2754,33 @@ >> } >> >> std::swap(V1, V2); >> - Mask = DAG.getNode(ISD::BUILD_VECTOR, MaskVT, &MaskVec[0], >> MaskVec.size()); >> + M

Re: [llvm-commits] [llvm] r44687 - in /llvm/trunk: include/llvm/CodeGen/Passes.h lib/CodeGen/LLVMTargetMachine.cpp lib/CodeGen/MachineLICM.cpp lib/Target/PowerPC/PPCInstrInfo.td

2007-12-07 Thread Evan Cheng
On Dec 7, 2007, at 1:42 PM, Bill Wendling wrote: > > > _foo: >li r2, 0 > LBB1_1: ; bb >li r5, 0 >stw r5, 0(r3) >addi r2, r2, 1 >addi r3, r3, 4 >cmplw cr0, r2, r4 >bne cr0, LBB1_1 ; bb > LBB1_2: ; return >blr > > to: > > _foo: >