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

2007-08-17 Thread David Greene
Author: greened Date: Fri Aug 17 10:13:55 2007 New Revision: 41139 URL: http://llvm.org/viewvc/llvm-project?rev=41139&view=rev Log: Fix GLIBCXX_DEBUG error of comparing two singular iterators Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp Modified: llvm/trunk/lib/CodeG

Re: [llvm-commits] [llvm] r41133 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

2007-08-17 Thread Chris Lattner
> URL: http://llvm.org/viewvc/llvm-project?rev=41133&view=rev > Log: > If dynamic_stackalloc alignment is > stack alignment, first issue > an instruction to align the stack ptr before the decrement. Nifty! > + unsigned Align = cast(Tmp3)->getValue(); > + unsigned StackAlign = > +

[llvm-commits] [llvm] r41142 - /llvm/trunk/include/llvm/ADT/ilist

2007-08-17 Thread Chris Lattner
Author: lattner Date: Fri Aug 17 11:49:19 2007 New Revision: 41142 URL: http://llvm.org/viewvc/llvm-project?rev=41142&view=rev Log: improve iplist comments. Switch iplist from allocating its sentinal object (for end()) eagerly to allocating it lazily. This saves a lot of memory for JIT applic

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

2007-08-17 Thread Evan Cheng
Author: evancheng Date: Fri Aug 17 13:02:22 2007 New Revision: 41143 URL: http://llvm.org/viewvc/llvm-project?rev=41143&view=rev Log: Avoid issue on 64-bit hosts. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp URL:

Re: [llvm-commits] [PATCH] JIT support for ARM

2007-08-17 Thread Chris Lattner
On Aug 17, 2007, at 12:02 PM, Evan Cheng wrote: > void *ARMJITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter > &MCE) { > - unsigned addr = (intptr_t)Fn-MCE.getCurrentPCValue()-4; > + unsigned addr = (intptr_t)Fn; >// If this is just a call to an external function, emit a branch >

[llvm-commits] [llvm] r41144 - in /llvm/trunk: include/llvm/Analysis/Dominators.h lib/Transforms/Scalar/LoopIndexSplit.cpp lib/Transforms/Utils/LCSSA.cpp

2007-08-17 Thread Devang Patel
Author: dpatel Date: Fri Aug 17 16:59:16 2007 New Revision: 41144 URL: http://llvm.org/viewvc/llvm-project?rev=41144&view=rev Log: When one branch of condition is eliminated then head of the other branch is not necessary immediate dominators of merge blcok in all cases. Modified: llvm/trunk/

[llvm-commits] [llvm] r41146 - in /llvm/trunk/test/Transforms/LoopIndexSplit: ./ Crash-2007-08-17.ll Crash2-2007-08-17.ll OneIterLoop-2007-08-17.ll OneIterLoop2-2007-08-17.ll OneIterLoop3-2007-08-17.l

2007-08-17 Thread Devang Patel
Author: dpatel Date: Fri Aug 17 17:02:15 2007 New Revision: 41146 URL: http://llvm.org/viewvc/llvm-project?rev=41146&view=rev Log: Add loop index split tests. Added: llvm/trunk/test/Transforms/LoopIndexSplit/ llvm/trunk/test/Transforms/LoopIndexSplit/Crash-2007-08-17.ll llvm/trunk/tes

[llvm-commits] [llvm] r41148 - /llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp

2007-08-17 Thread Devang Patel
Author: dpatel Date: Fri Aug 17 19:00:32 2007 New Revision: 41148 URL: http://llvm.org/viewvc/llvm-project?rev=41148&view=rev Log: Avoid spliting loops where two split condition branches are not independent. Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Modified: llvm/trunk/l

Re: [llvm-commits] [PATCH] JIT support for ARM

2007-08-17 Thread Raul Fernandes Herbster
Yes, Chris. I'd have to create a big switch table. 2007/8/17, Chris Lattner <[EMAIL PROTECTED]>: > > > On Aug 17, 2007, at 12:02 PM, Evan Cheng wrote: > > > void *ARMJITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter > > &MCE) { > > - unsigned addr = (intptr_t)Fn-MCE.getCurrentPCValue()-4; >

Re: [llvm-commits] [PATCH] JIT support for ARM

2007-08-17 Thread Raul Fernandes Herbster
2007/8/17, Evan Cheng <[EMAIL PROTECTED]>: > > Very good progress. Thanks! > > Comments inline. > > Evan > > ... > > Please use abort() instead so it does what's expected in non-debug build. > OK ... > > i s -> is :-) > OK Also, why the name "ARMCompilationCallbackC"? Is it language specific? >

[llvm-commits] [llvm] r41149 - /llvm/trunk/lib/Target/Mips/MipsSchedule.td

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 20:46:44 2007 New Revision: 41149 URL: http://llvm.org/viewvc/llvm-project?rev=41149&view=rev Log: Mips generic fallback instruction schedule support! Added: llvm/trunk/lib/Target/Mips/MipsSchedule.td Added: llvm/trunk/lib/Target/Mips/MipsSchedule.td URL: http

[llvm-commits] [llvm] r41150 - /llvm/trunk/lib/Target/Mips/MipsDelaySlotFiller.cpp

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 20:50:47 2007 New Revision: 41150 URL: http://llvm.org/viewvc/llvm-project?rev=41150&view=rev Log: A Pass to insert Nops on intructions with DelaySlot Added: llvm/trunk/lib/Target/Mips/MipsDelaySlotFiller.cpp Added: llvm/trunk/lib/Target/Mips/MipsDelaySlotFille

[llvm-commits] [llvm] r41151 - /llvm/trunk/lib/Target/Mips/MipsSubtarget.h

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 20:52:27 2007 New Revision: 41151 URL: http://llvm.org/viewvc/llvm-project?rev=41151&view=rev Log: InstrItineraryData support on added. Added Mips3 ISA feature (needed when supporting R4000 machines) Modified: llvm/trunk/lib/Target/Mips/MipsSubtarget.h Modified

[llvm-commits] [llvm] r41152 - /llvm/trunk/lib/Target/Mips/MipsISelLowering.h

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 20:54:09 2007 New Revision: 41152 URL: http://llvm.org/viewvc/llvm-project?rev=41152&view=rev Log: LowerRETURNADDR removed since it was wrong and does not have utility yet! MipsAdd opcode added Modified: llvm/trunk/lib/Target/Mips/MipsISelLowering.h Modified: l

[llvm-commits] [llvm] r41153 - /llvm/trunk/lib/Target/Mips/MipsInstrInfo.cpp

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 20:56:48 2007 New Revision: 41153 URL: http://llvm.org/viewvc/llvm-project?rev=41153&view=rev Log: Added Branch Analysis support Added InsertNoop support Modified: llvm/trunk/lib/Target/Mips/MipsInstrInfo.cpp Modified: llvm/trunk/lib/Target/Mips/MipsInstrInfo.

[llvm-commits] [llvm] r41154 - /llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 20:58:15 2007 New Revision: 41154 URL: http://llvm.org/viewvc/llvm-project?rev=41154&view=rev Log: createMipsDelaySlotFillerPass added to mips codegen runtime Modified: llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp Modified: llvm/trunk/lib/Target/Mips/MipsT

[llvm-commits] [llvm] r41155 - /llvm/trunk/lib/Target/Mips/MipsInstrInfo.h

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 20:59:45 2007 New Revision: 41155 URL: http://llvm.org/viewvc/llvm-project?rev=41155&view=rev Log: Branch Analysis and InsertNoop inserted into header files Modified: llvm/trunk/lib/Target/Mips/MipsInstrInfo.h Modified: llvm/trunk/lib/Target/Mips/MipsInstrInfo.

[llvm-commits] [llvm] r41156 - /llvm/trunk/lib/Target/Mips/MipsInstrFormats.td

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 21:01:28 2007 New Revision: 41156 URL: http://llvm.org/viewvc/llvm-project?rev=41156&view=rev Log: Added InstrItinClass support for instruction formats Modified: llvm/trunk/lib/Target/Mips/MipsInstrFormats.td Modified: llvm/trunk/lib/Target/Mips/MipsInstrFormat

[llvm-commits] [llvm] r41157 - in /llvm/trunk/lib/Target/Mips: Mips.h MipsAsmPrinter.cpp

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 21:05:24 2007 New Revision: 41157 URL: http://llvm.org/viewvc/llvm-project?rev=41157&view=rev Log: Couple of small changes. Delay Slot handle header declared. Newline added after macros at function init on generated asm! Modified: llvm/trunk/lib/Target/Mips/Mip

[llvm-commits] [llvm] r41158 - in /llvm/trunk/lib/Target/Mips: MipsISelDAGToDAG.cpp MipsISelLowering.cpp

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 21:16:30 2007 New Revision: 41158 URL: http://llvm.org/viewvc/llvm-project?rev=41158&view=rev Log: Removed LowerRETURADDR, fixed small bug into LowerRET, LowerGlobalAddress fixed to generate instructions (add, lui) glued! Modified: llvm/trunk/lib/Target/Mips/Mip

[llvm-commits] [llvm] r41159 - in /llvm/trunk/lib/Target/Mips: Mips.td MipsSubtarget.cpp

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 21:18:07 2007 New Revision: 41159 URL: http://llvm.org/viewvc/llvm-project?rev=41159&view=rev Log: support for Schedule included on Mips.td Modified: llvm/trunk/lib/Target/Mips/Mips.td llvm/trunk/lib/Target/Mips/MipsSubtarget.cpp Modified: llvm/trunk/lib/Ta

[llvm-commits] [llvm] r41160 - /llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 21:19:09 2007 New Revision: 41160 URL: http://llvm.org/viewvc/llvm-project?rev=41160&view=rev Log: Fixed stack frame addressing bug Modified: llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp Modified: llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp URL: http://

[llvm-commits] [llvm] r41161 - /llvm/trunk/lib/Target/Mips/MipsInstrInfo.td

2007-08-17 Thread Bruno Cardoso Lopes
Author: bruno Date: Fri Aug 17 21:37:46 2007 New Revision: 41161 URL: http://llvm.org/viewvc/llvm-project?rev=41161&view=rev Log: MipsHi now has ouput flag MipsAdd SDNode created to add support to an Add opcode which supports input flag Added an instruction itinerary to all instruction classes Add

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

2007-08-17 Thread Evan Cheng
Author: evancheng Date: Sat Aug 18 00:57:05 2007 New Revision: 41163 URL: http://llvm.org/viewvc/llvm-project?rev=41163&view=rev Log: Fold C ? 0 : 1 to ~C or zext(~C) or trunc(~C) depending the types. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Modified: llvm/trunk/lib/Code

[llvm-commits] [llvm] r41164 - /llvm/trunk/test/CodeGen/X86/select-zero-one.ll

2007-08-17 Thread Evan Cheng
Author: evancheng Date: Sat Aug 18 01:11:57 2007 New Revision: 41164 URL: http://llvm.org/viewvc/llvm-project?rev=41164&view=rev Log: Test dag xform: Fold C ? 0 : 1 to ~C or zext(~C) or trunc(~C) Added: llvm/trunk/test/CodeGen/X86/select-zero-one.ll Added: llvm/trunk/test/CodeGen/X86/select-

[llvm-commits] [llvm] r41165 - /llvm/trunk/lib/VMCore/Verifier.cpp

2007-08-17 Thread Chris Lattner
Author: lattner Date: Sat Aug 18 01:13:19 2007 New Revision: 41165 URL: http://llvm.org/viewvc/llvm-project?rev=41165&view=rev Log: use a nicer accessor. Modified: llvm/trunk/lib/VMCore/Verifier.cpp Modified: llvm/trunk/lib/VMCore/Verifier.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/

[llvm-commits] [llvm] r41166 - in /llvm/trunk: include/llvm/Function.h lib/VMCore/Function.cpp

2007-08-17 Thread Chris Lattner
Author: lattner Date: Sat Aug 18 01:14:52 2007 New Revision: 41166 URL: http://llvm.org/viewvc/llvm-project?rev=41166&view=rev Log: Compute the argument list as lazily as possible. This ensures that clients that don't use it don't have to pay the memory cost for the arguments. This allows us to