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

2007-08-14 Thread Devang Patel
Author: dpatel Date: Tue Aug 14 22:34:53 2007 New Revision: 41096 URL: http://llvm.org/viewvc/llvm-project?rev=41096&view=rev Log: Dominance frontier is now required. Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp U

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

2007-08-14 Thread Devang Patel
Author: dpatel Date: Tue Aug 14 22:31:47 2007 New Revision: 41095 URL: http://llvm.org/viewvc/llvm-project?rev=41095&view=rev Log: Cleanup removeBlocks. Use dominance frontier to fixup incoming edges of successor blocks not domianted by DeadBB. Use df_iterator to walk and delete basic blocks dom

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

2007-08-14 Thread Reid Spencer
Author: reid Date: Tue Aug 14 22:01:04 2007 New Revision: 41094 URL: http://llvm.org/viewvc/llvm-project?rev=41094&view=rev Log: Remove unneeded header file. Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp URL: http

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

2007-08-14 Thread Devang Patel
Author: dpatel Date: Tue Aug 14 21:14:55 2007 New Revision: 41093 URL: http://llvm.org/viewvc/llvm-project?rev=41093&view=rev Log: Avoid triangle loops. Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp URL: http://ll

Re: [llvm-commits] [llvm] r41074 - /llvm/trunk/include/llvm/Analysis/Dominators.h

2007-08-14 Thread Nick Lewycky
On Tue, 2007-08-14 at 16:53 +, Devang Patel wrote: > +for (iterator I = begin(), E = end(); I != E; ++I) > + if (I->second.count(BB)) > +I->second.erase(BB); > +Frontiers.erase(BB); >} Why test I->second.count()? The worst erase() will do if BB doesn't exist is nothing

[llvm-commits] [llvm] r41091 - /llvm/trunk/lib/Transforms/Utils/CloneLoop.cpp

2007-08-14 Thread Devang Patel
Author: dpatel Date: Tue Aug 14 18:59:17 2007 New Revision: 41091 URL: http://llvm.org/viewvc/llvm-project?rev=41091&view=rev Log: Break infinite loop. Modified: llvm/trunk/lib/Transforms/Utils/CloneLoop.cpp Modified: llvm/trunk/lib/Transforms/Utils/CloneLoop.cpp URL: http://llvm.org/viewvc

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

2007-08-14 Thread Devang Patel
Author: dpatel Date: Tue Aug 14 18:53:57 2007 New Revision: 41090 URL: http://llvm.org/viewvc/llvm-project?rev=41090&view=rev Log: Avoid nested loops at the moment. Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp URL

[llvm-commits] [llvm] r41089 - /llvm/tags/Apple/llvm-1200-08/

2007-08-14 Thread Bill Wendling
Author: void Date: Tue Aug 14 18:53:10 2007 New Revision: 41089 URL: http://llvm.org/viewvc/llvm-project?rev=41089&view=rev Log: Creating llvm-1200-08 branch Added: llvm/tags/Apple/llvm-1200-08/ - copied from r41088, llvm/trunk/ ___ llvm-comm

[llvm-commits] [llvm-gcc-4.0] r41088 - /llvm-gcc-4.0/tags/llvm-gcc-1200-08/

2007-08-14 Thread Bill Wendling
Author: void Date: Tue Aug 14 18:53:04 2007 New Revision: 41088 URL: http://llvm.org/viewvc/llvm-project?rev=41088&view=rev Log: Creating llvm-gcc-1200-08 branch Added: llvm-gcc-4.0/tags/llvm-gcc-1200-08/ - copied from r41087, llvm-gcc-4.0/trunk/ ___

[llvm-commits] [llvm] r41087 - /llvm/trunk/test/CodeGen/ARM/2007-08-14-SpillDeadDef.ll

2007-08-14 Thread Evan Cheng
Author: evancheng Date: Tue Aug 14 18:34:50 2007 New Revision: 41087 URL: http://llvm.org/viewvc/llvm-project?rev=41087&view=rev Log: New test. Added: llvm/trunk/test/CodeGen/ARM/2007-08-14-SpillDeadDef.ll Added: llvm/trunk/test/CodeGen/ARM/2007-08-14-SpillDeadDef.ll URL: http://llvm.org/vi

[llvm-commits] [llvm] r41086 - /llvm/trunk/lib/CodeGen/VirtRegMap.cpp

2007-08-14 Thread Evan Cheng
Author: evancheng Date: Tue Aug 14 18:25:37 2007 New Revision: 41086 URL: http://llvm.org/viewvc/llvm-project?rev=41086&view=rev Log: - If a def is dead, do not spill it. - If the defs of a spilled rematerializable MI are dead after the spill store is deleted, delete the def MI as well. Modifi

[llvm-commits] [llvm] r41085 - /llvm/trunk/test/CodeGen/PowerPC/2007-08-04-CoalescerAssert.ll

2007-08-14 Thread Evan Cheng
Author: evancheng Date: Tue Aug 14 18:21:10 2007 New Revision: 41085 URL: http://llvm.org/viewvc/llvm-project?rev=41085&view=rev Log: Test case for PR1596. Added: llvm/trunk/test/CodeGen/PowerPC/2007-08-04-CoalescerAssert.ll Added: llvm/trunk/test/CodeGen/PowerPC/2007-08-04-CoalescerAssert.l

[llvm-commits] [llvm] r41084 - /llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp

2007-08-14 Thread Evan Cheng
Author: evancheng Date: Tue Aug 14 18:19:28 2007 New Revision: 41084 URL: http://llvm.org/viewvc/llvm-project?rev=41084&view=rev Log: Fix for PR1596: AdjustCopiesBackFrom() should conservatively check if any of its sub-registers may overlap with the interval of the copy that's being coalesced.

[llvm-commits] [llvm] r41083 - /llvm/trunk/lib/CodeGen/VirtRegMap.cpp

2007-08-14 Thread Evan Cheng
Author: evancheng Date: Tue Aug 14 15:23:13 2007 New Revision: 41083 URL: http://llvm.org/viewvc/llvm-project?rev=41083&view=rev Log: If a MI's def is remat as well as spilled, and the store is later deemed dead, mark the def operand as isDead. Modified: llvm/trunk/lib/CodeGen/VirtRegMap.cpp

Re: [llvm-commits] [llvm] r41073 - /llvm/trunk/test/CodeGen/X86/constant-pool-remat-0.ll

2007-08-14 Thread Chris Lattner
On Aug 14, 2007, at 12:25 PM, Reid Spencer wrote: > Chris > > On Tue, 2007-08-14 at 16:19 +, Chris Lattner wrote: >> Author: lattner >> Date: Tue Aug 14 11:19:35 2007 >> New Revision: 41073 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=41073&view=rev >> Log: >> tcl seems to hate |& for s

Re: [llvm-commits] [llvm] r41073 - /llvm/trunk/test/CodeGen/X86/constant-pool-remat-0.ll

2007-08-14 Thread Reid Spencer
Chris On Tue, 2007-08-14 at 16:19 +, Chris Lattner wrote: > Author: lattner > Date: Tue Aug 14 11:19:35 2007 > New Revision: 41073 > > URL: http://llvm.org/viewvc/llvm-project?rev=41073&view=rev > Log: > tcl seems to hate |& for some reason. > > Modified: > llvm/trunk/test/CodeGen/X86/co

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

2007-08-14 Thread Devang Patel
Author: dpatel Date: Tue Aug 14 13:35:57 2007 New Revision: 41082 URL: http://llvm.org/viewvc/llvm-project?rev=41082&view=rev Log: Fix dominance frontier update while removing blocks. Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Modified: llvm/trunk/lib/Transforms/Scalar/Lo

[llvm-commits] [llvm] r41081 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp

2007-08-14 Thread Owen Anderson
Author: resistor Date: Tue Aug 14 13:33:27 2007 New Revision: 41081 URL: http://llvm.org/viewvc/llvm-project?rev=41081&view=rev Log: Eliminate PHI nodes with constant values during normal GVN processing, even when they're not related to eliminating a load. Modified: llvm/trunk/lib/Transforms/

[llvm-commits] [llvm] r41080 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp

2007-08-14 Thread Owen Anderson
Author: resistor Date: Tue Aug 14 13:16:29 2007 New Revision: 41080 URL: http://llvm.org/viewvc/llvm-project?rev=41080&view=rev Log: Be more aggressive in pruning unnecessary PHI nodes when doing PHI construction. Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp Modified: llvm/trunk/lib/Tr

[llvm-commits] [llvm] r41078 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp

2007-08-14 Thread Owen Anderson
Author: resistor Date: Tue Aug 14 13:04:11 2007 New Revision: 41078 URL: http://llvm.org/viewvc/llvm-project?rev=41078&view=rev Log: Make GVN iterative. Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp URL: http://llvm.org/viewvc/llvm-pro

[llvm-commits] [llvm] r41077 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp

2007-08-14 Thread Owen Anderson
Author: resistor Date: Tue Aug 14 12:59:48 2007 New Revision: 41077 URL: http://llvm.org/viewvc/llvm-project?rev=41077&view=rev Log: Fix a case where GVN was failing to return true when it had, in fact, modified the function. Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp Modified: llvm/

[llvm-commits] [llvm] r41075 - /llvm/trunk/lib/VMCore/Dominators.cpp

2007-08-14 Thread Devang Patel
Author: dpatel Date: Tue Aug 14 11:53:52 2007 New Revision: 41075 URL: http://llvm.org/viewvc/llvm-project?rev=41075&view=rev Log: Assert sooner. Fix wordings. Modified: llvm/trunk/lib/VMCore/Dominators.cpp Modified: llvm/trunk/lib/VMCore/Dominators.cpp URL: http://llvm.org/viewvc/llvm-proj

[llvm-commits] [llvm] r41074 - /llvm/trunk/include/llvm/Analysis/Dominators.h

2007-08-14 Thread Devang Patel
Author: dpatel Date: Tue Aug 14 11:53:24 2007 New Revision: 41074 URL: http://llvm.org/viewvc/llvm-project?rev=41074&view=rev Log: No need to use iterator to erase basic block. Modified: llvm/trunk/include/llvm/Analysis/Dominators.h Modified: llvm/trunk/include/llvm/Analysis/Dominators.h URL

Re: [llvm-commits] [llvm] r41070 - /llvm/trunk/test/CodeGen/X86/constant-pool-remat-0.ll

2007-08-14 Thread Chris Lattner
On Aug 14, 2007, at 9:22 AM, Chris Lattner wrote: > > On Aug 14, 2007, at 2:16 AM, Evan Cheng wrote: > >> Author: evancheng >> Date: Tue Aug 14 04:16:00 2007 >> New Revision: 41070 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=41070&view=rev >> Log: >> Update test case. A spill should now be

Re: [llvm-commits] [llvm] r41070 - /llvm/trunk/test/CodeGen/X86/constant-pool-remat-0.ll

2007-08-14 Thread Chris Lattner
On Aug 14, 2007, at 2:16 AM, Evan Cheng wrote: > Author: evancheng > Date: Tue Aug 14 04:16:00 2007 > New Revision: 41070 > > URL: http://llvm.org/viewvc/llvm-project?rev=41070&view=rev > Log: > Update test case. A spill should now be deleted. > > Modified: > llvm/trunk/test/CodeGen/X86/const

[llvm-commits] [llvm] r41073 - /llvm/trunk/test/CodeGen/X86/constant-pool-remat-0.ll

2007-08-14 Thread Chris Lattner
Author: lattner Date: Tue Aug 14 11:19:35 2007 New Revision: 41073 URL: http://llvm.org/viewvc/llvm-project?rev=41073&view=rev Log: tcl seems to hate |& for some reason. Modified: llvm/trunk/test/CodeGen/X86/constant-pool-remat-0.ll Modified: llvm/trunk/test/CodeGen/X86/constant-pool-remat-0

[llvm-commits] [llvm] r41072 - /llvm/trunk/test/CodeGen/X86/constant-pool-remat-0.ll

2007-08-14 Thread Chris Lattner
Author: lattner Date: Tue Aug 14 11:14:10 2007 New Revision: 41072 URL: http://llvm.org/viewvc/llvm-project?rev=41072&view=rev Log: switch this to use fastcc to avoid fpstack traffic on x86-32. Switch to using the count script instead of wc -l Modified: llvm/trunk/test/CodeGen/X86/constant-

Re: [llvm-commits] [llvm] r41052 - in /llvm/trunk: include/llvm/Analysis/Dominators.h lib/VMCore/Dominators.cpp

2007-08-14 Thread Chris Lattner
> URL: http://llvm.org/viewvc/llvm-project?rev=41052&view=rev > Log: > Add methods to erase basic block entry. > > + /// removeBlock - Remove basic block BB's frontier. > + void removeBlock(BasicBlock *BB) { > +assert(find(BB) != end() && "Block is not in > DominanceFrontier!"); > +iter

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

2007-08-14 Thread Chris Lattner
Author: lattner Date: Tue Aug 14 10:45:39 2007 New Revision: 41071 URL: http://llvm.org/viewvc/llvm-project?rev=41071&view=rev Log: When building casts, constant fold with ConstantFoldInstruction instead of ConstantExpr::getCast. This allows target-data driven constant folding to happen. In the

[llvm-commits] [llvm] r41069 - /llvm/trunk/lib/CodeGen/VirtRegMap.cpp

2007-08-14 Thread Evan Cheng
Author: evancheng Date: Tue Aug 14 04:11:18 2007 New Revision: 41069 URL: http://llvm.org/viewvc/llvm-project?rev=41069&view=rev Log: If a spilled value is being reused and the use is a kill, that means there are no more uses within the MBB and the spilled value isn't live out of the MBB. Then it'

[llvm-commits] [llvm] r41070 - /llvm/trunk/test/CodeGen/X86/constant-pool-remat-0.ll

2007-08-14 Thread Evan Cheng
Author: evancheng Date: Tue Aug 14 04:16:00 2007 New Revision: 41070 URL: http://llvm.org/viewvc/llvm-project?rev=41070&view=rev Log: Update test case. A spill should now be deleted. Modified: llvm/trunk/test/CodeGen/X86/constant-pool-remat-0.ll Modified: llvm/trunk/test/CodeGen/X86/constant