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

2008-02-13 Thread Evan Cheng
Author: evancheng Date: Wed Feb 13 02:41:08 2008 New Revision: 47056 URL: http://llvm.org/viewvc/llvm-project?rev=47056view=rev Log: * Cannot safely commute an instruction there are other defs which can reach its uses. * Ignore copy instructions which have already been coalesced. Modified:

[llvm-commits] [llvm] r47057 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

2008-02-13 Thread Evan Cheng
Author: evancheng Date: Wed Feb 13 03:06:18 2008 New Revision: 47057 URL: http://llvm.org/viewvc/llvm-project?rev=47057view=rev Log: Fix a potential serious problem where kills belonging to the val# defined by a two-address instruction is also on the val# that defines the input. Modified:

Re: [llvm-commits] [llvm] r47043 - in /llvm/trunk/lib: CodeGen/TargetInstrInfoImpl.cpp Target/PowerPC/PPCInstrInfo.cpp Target/X86/X86InstrInfo.cpp

2008-02-13 Thread Evan Cheng
On Feb 12, 2008, at 9:59 PM, Chris Lattner wrote: On Feb 12, 2008, at 6:46 PM, Evan Cheng wrote: Author: evancheng Date: Tue Feb 12 20:46:49 2008 New Revision: 47043 URL: http://llvm.org/viewvc/llvm-project?rev=47043view=rev Log: commuteInstr() can now commute non-ssa machine instrs.

[llvm-commits] [llvm] r47058 - /llvm/trunk/lib/CodeGen/TargetInstrInfoImpl.cpp

2008-02-13 Thread Evan Cheng
Author: evancheng Date: Wed Feb 13 03:13:21 2008 New Revision: 47058 URL: http://llvm.org/viewvc/llvm-project?rev=47058view=rev Log: Simplify. Modified: llvm/trunk/lib/CodeGen/TargetInstrInfoImpl.cpp Modified: llvm/trunk/lib/CodeGen/TargetInstrInfoImpl.cpp URL:

[llvm-commits] [llvm] r47059 - /llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h

2008-02-13 Thread Evan Cheng
Author: evancheng Date: Wed Feb 13 03:18:16 2008 New Revision: 47059 URL: http://llvm.org/viewvc/llvm-project?rev=47059view=rev Log: Simplify. Modified: llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h Modified: llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h URL:

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

2008-02-13 Thread Evan Cheng
Author: evancheng Date: Wed Feb 13 03:56:03 2008 New Revision: 47060 URL: http://llvm.org/viewvc/llvm-project?rev=47060view=rev Log: Some code clean up. Modified: llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Modified: llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp URL:

Re: [llvm-commits] [llvm] r47046 - in /llvm/trunk: include/llvm/CodeGen/LiveIntervalAnalysis.h lib/CodeGen/SimpleRegisterCoalescing.cpp lib/CodeGen/SimpleRegisterCoalescing.h

2008-02-13 Thread Evan Cheng
On Feb 12, 2008, at 9:56 PM, Chris Lattner wrote: On Feb 12, 2008, at 7:01 PM, Evan Cheng wrote: Author: evancheng Date: Tue Feb 12 21:01:43 2008 New Revision: 47046 URL: http://llvm.org/viewvc/llvm-project?rev=47046view=rev Log: Initial support for copy elimination by commuting its

Re: [llvm-commits] [llvm] r47007 - in /llvm/trunk: lib/Analysis/ScalarEvolution.cpp test/Analysis/ScalarEvolution/2008-02-12-SMAXTripCount.ll

2008-02-13 Thread Wojciech Matyjewicz
Chris Lattner wrote: Very nice, please add a comment above the code explaining what is going on though :) Done. Wojtek ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

[llvm-commits] [llvm] r47061 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp

2008-02-13 Thread Wojciech Matyjewicz
Author: wmat Date: Wed Feb 13 05:51:34 2008 New Revision: 47061 URL: http://llvm.org/viewvc/llvm-project?rev=47061view=rev Log: Add comments as per review feedback. Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp URL:

Re: [llvm-commits] [llvm] r47061 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp

2008-02-13 Thread Duncan Sands
+// treat m-n as signed nor unsinged due to overflow possibility. unsinged - unsigned Ciao, D. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

[llvm-commits] [llvm] r47062 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp

2008-02-13 Thread Wojciech Matyjewicz
Author: wmat Date: Wed Feb 13 06:21:32 2008 New Revision: 47062 URL: http://llvm.org/viewvc/llvm-project?rev=47062view=rev Log: Fix typo. Thanks to Duncan for noticing. Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp URL:

Re: [llvm-commits] [llvm] r47045 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td

2008-02-13 Thread Nicolas Geoffray
Hi Nate, Nate Begeman wrote: Author: sampo Date: Tue Feb 12 20:58:33 2008 New Revision: 47045 URL: http://llvm.org/viewvc/llvm-project?rev=47045view=rev Log: Make register scavenging happy by not using a reg (CR0) that isn't defined I don't know about darwin, but this breaks

[llvm-commits] [llvm] r47063 - /llvm/trunk/docs/CFEBuildInstrs.html

2008-02-13 Thread Duncan Sands
Author: baldrick Date: Wed Feb 13 10:46:10 2008 New Revision: 47063 URL: http://llvm.org/viewvc/llvm-project?rev=47063view=rev Log: Add notes on Ada compilers that can be used for the build. Put all items that the user should specify in bold. Make it a debug build. Modified:

Re: [llvm-commits] [llvm] r47007 - in /llvm/trunk: lib/Analysis/ScalarEvolution.cpp test/Analysis/ScalarEvolution/2008-02-12-SMAXTripCount.ll

2008-02-13 Thread Chris Lattner
On Feb 13, 2008, at 3:51 AM, Wojciech Matyjewicz wrote: Chris Lattner wrote: Very nice, please add a comment above the code explaining what is going on though :) Done. Very nice, thanks! -Chris ___ llvm-commits mailing list

Re: [llvm-commits] [llvm] r47043 - in /llvm/trunk/lib: CodeGen/TargetInstrInfoImpl.cpp Target/PowerPC/PPCInstrInfo.cpp Target/X86/X86InstrInfo.cpp

2008-02-13 Thread Chris Lattner
Bonus points for making tblgen reject instructions marked commutable that don't start with three register operands. That's too restrictive. It's entirely legal for target instruction that don't start with 3 register operands to be commutable. That's why we allow target specific code to

Re: [llvm-commits] [llvm] r47045 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td

2008-02-13 Thread Chris Lattner
I don't know about darwin, but this breaks linux/ppc32 JIT (llc works fine). On a simple test case: define i32 @main(i32 %argc) { entry: %tmp2 = add i32 2, %argc ret i32 %tmp2 } Yep, this was broken on darwin as well. I just committed a fix which makes it work for me,

[llvm-commits] [llvm] r47066 - /llvm/trunk/lib/Transforms/IPO/ConstantMerge.cpp

2008-02-13 Thread Chris Lattner
Author: lattner Date: Wed Feb 13 11:18:26 2008 New Revision: 47066 URL: http://llvm.org/viewvc/llvm-project?rev=47066view=rev Log: remove some dead code. Modified: llvm/trunk/lib/Transforms/IPO/ConstantMerge.cpp Modified: llvm/trunk/lib/Transforms/IPO/ConstantMerge.cpp URL:

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

2008-02-13 Thread Chris Lattner
Author: lattner Date: Wed Feb 13 11:24:14 2008 New Revision: 47067 URL: http://llvm.org/viewvc/llvm-project?rev=47067view=rev Log: Fix the PPC JIT regressions by encoding zeroreg as 0 for BLR. Modified: llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp Modified:

[llvm-commits] [llvm] r47073 - /llvm/trunk/docs/GettingStarted.html

2008-02-13 Thread Chris Lattner
Author: lattner Date: Wed Feb 13 11:50:24 2008 New Revision: 47073 URL: http://llvm.org/viewvc/llvm-project?rev=47073view=rev Log: gcc 3.2.3 is also bad. Modified: llvm/trunk/docs/GettingStarted.html Modified: llvm/trunk/docs/GettingStarted.html URL:

Re: [llvm-commits] [llvm] r47046 - in /llvm/trunk: include/llvm/CodeGen/LiveIntervalAnalysis.h lib/CodeGen/SimpleRegisterCoalescing.cpp lib/CodeGen/SimpleRegisterCoalescing.h

2008-02-13 Thread Chris Lattner
On Feb 13, 2008, at 1:47 AM, Evan Cheng wrote: Very nice, does it also help shootout/fib? bh speedup doesn't seem real. It doesn't help fib. Ok, once things have settled, please take a look at the comments in the bugzilla to see if there are other cases being missed. This idiom happens a

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

2008-02-13 Thread Evan Cheng
Does this mean some of the custom lowering in X86ISelLowering.cpp can be eliminated? Thanks, Evan On Feb 12, 2008, at 10:43 PM, Nate Begeman wrote: Author: sampo Date: Wed Feb 13 00:43:04 2008 New Revision: 47048 URL: http://llvm.org/viewvc/llvm-project?rev=47048view=rev Log: Support

Re: [llvm-commits] [llvm] r47046 - in /llvm/trunk: include/llvm/CodeGen/LiveIntervalAnalysis.h lib/CodeGen/SimpleRegisterCoalescing.cpp lib/CodeGen/SimpleRegisterCoalescing.h

2008-02-13 Thread Evan Cheng
On Feb 13, 2008, at 9:31 AM, Chris Lattner wrote: On Feb 13, 2008, at 1:47 AM, Evan Cheng wrote: Very nice, does it also help shootout/fib? bh speedup doesn't seem real. It doesn't help fib. Ok, once things have settled, please take a look at the comments in the bugzilla to see if there

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

2008-02-13 Thread Dale Johannesen
Author: johannes Date: Wed Feb 13 12:36:09 2008 New Revision: 47077 URL: http://llvm.org/viewvc/llvm-project?rev=47077view=rev Log: Don't omit copying of PaddingElements; this causes wrong code when structs are identical except that one has padding in the same place another has a real field.

[llvm-commits] [llvm] r47075 - in /llvm/trunk: lib/CodeGen/SelectionDAG/LegalizeTypes.h lib/CodeGen/SelectionDAG/LegalizeTypesExpand.cpp lib/CodeGen/SelectionDAG/LegalizeTypesPromote.cpp test/CodeGen/

2008-02-13 Thread Duncan Sands
Author: baldrick Date: Wed Feb 13 12:01:53 2008 New Revision: 47075 URL: http://llvm.org/viewvc/llvm-project?rev=47075view=rev Log: Teach LegalizeTypes how to expand and promote CTLZ, CTTZ and CTPOP. The expansion code differs from that in LegalizeDAG in that it chooses to take the CTLZ/CTTZ

[llvm-commits] [llvm] r47078 - /llvm/trunk/test/C++Frontend/2008-02-13-sret.cpp

2008-02-13 Thread Dale Johannesen
Author: johannes Date: Wed Feb 13 12:36:48 2008 New Revision: 47078 URL: http://llvm.org/viewvc/llvm-project?rev=47078view=rev Log: New test, see comments. Added: llvm/trunk/test/C++Frontend/2008-02-13-sret.cpp Added: llvm/trunk/test/C++Frontend/2008-02-13-sret.cpp URL:

[llvm-commits] [llvm] r47079 - in /llvm/trunk: include/llvm/CodeGen/ include/llvm/ExecutionEngine/ lib/CodeGen/ lib/ExecutionEngine/ lib/ExecutionEngine/JIT/ lib/Target/PowerPC/ lib/Target/X86/

2008-02-13 Thread Nicolas Geoffray
Author: geoffray Date: Wed Feb 13 12:39:37 2008 New Revision: 47079 URL: http://llvm.org/viewvc/llvm-project?rev=47079view=rev Log: Enable exception handling int JIT Added: llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.h

Re: [llvm-commits] [llvm] r47045 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td

2008-02-13 Thread Nicolas Geoffray
Thanks Chris, it works just fine now. Chris Lattner wrote: I don't know about darwin, but this breaks linux/ppc32 JIT (llc works fine). On a simple test case: define i32 @main(i32 %argc) { entry: %tmp2 = add i32 2, %argc ret i32 %tmp2 } Yep, this was broken on darwin

Re: [llvm-commits] [llvm] r47054 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/X86/arg-cast.ll

2008-02-13 Thread Dan Gohman
Hi Chris, On Feb 12, 2008, at 11:39 PM, Chris Lattner wrote: URL: http://llvm.org/viewvc/llvm-project?rev=47054view=rev Log: In SDISel, for targets that support FORMAL_ARGUMENTS nodes, lower this node as soon as we create it in SDISel. Previously we would lower it in legalize. The

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

2008-02-13 Thread Dale Johannesen
Author: johannes Date: Wed Feb 13 13:30:03 2008 New Revision: 47081 URL: http://llvm.org/viewvc/llvm-project?rev=47081view=rev Log: Whitespace change to have a place to put this comment, which belonged on 47077: Fixes t001 and t029 in struct-layout-1 in g++ testsuite. Modified:

[llvm-commits] [llvm-gcc-4.2] r47080 - in /llvm-gcc-4.2/trunk/gcc: common.opt llvm-backend.cpp

2008-02-13 Thread Devang Patel
Author: dpatel Date: Wed Feb 13 13:12:16 2008 New Revision: 47080 URL: http://llvm.org/viewvc/llvm-project?rev=47080view=rev Log: Add hook to dump .bc file before module level optimizer is run. This helps investigate optimizer and code generator bugs which are not easily reproducible using

[llvm-commits] [llvm] r47082 - in /llvm/trunk: lib/Transforms/Scalar/LoopIndexSplit.cpp test/Transforms/LoopIndexSplit/2008-02-13-ExitValueNum.ll

2008-02-13 Thread Devang Patel
Author: dpatel Date: Wed Feb 13 13:48:48 2008 New Revision: 47082 URL: http://llvm.org/viewvc/llvm-project?rev=47082view=rev Log: Keep track of exit value operand number when operands are swapped. Added: llvm/trunk/test/Transforms/LoopIndexSplit/2008-02-13-ExitValueNum.ll Modified:

Re: [llvm-commits] [llvm-gcc-4.2] r47080 - in /llvm-gcc-4.2/trunk/gcc: common.opt llvm-backend.cpp

2008-02-13 Thread Duncan Sands
Hi Devang, nice idea. +  // Emit intermediate .bc file before module level optimization passes are run. +  if (emit_llvm_bc flag_debug_llvm_module_opt) { Why condition this on emit_llvm_bc? +static PassManager *IntermediatePM = new PassManager(); +IntermediatePM-add(new

[llvm-commits] [llvm] r47084 - /llvm/trunk/include/llvm/Support/MathExtras.h

2008-02-13 Thread Dan Gohman
Author: djg Date: Wed Feb 13 14:54:54 2008 New Revision: 47084 URL: http://llvm.org/viewvc/llvm-project?rev=47084view=rev Log: Add count{Leading,Trailing}Ones_{32,64} functions with simple implementations. Modified: llvm/trunk/include/llvm/Support/MathExtras.h Modified:

Re: [llvm-commits] [llvm-gcc-4.2] r47080 - in /llvm-gcc-4.2/trunk/gcc: common.opt llvm-backend.cpp

2008-02-13 Thread Devang Patel
On Feb 13, 2008, at 11:52 AM, Duncan Sands wrote: Hi Devang, nice idea. + // Emit intermediate .bc file before module level optimization passes are run. + if (emit_llvm_bc flag_debug_llvm_module_opt) { Why condition this on emit_llvm_bc? In the next patch I used emit_llvm_bc

[llvm-commits] [llvm-gcc-4.2] r47083 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp

2008-02-13 Thread Devang Patel
Author: dpatel Date: Wed Feb 13 14:47:35 2008 New Revision: 47083 URL: http://llvm.org/viewvc/llvm-project?rev=47083view=rev Log: Selectively print llvm asm file or write bit code file as an intermediate file based on input command line options. Modified:

[llvm-commits] [llvm] r47085 - /llvm/trunk/include/llvm/ADT/APInt.h

2008-02-13 Thread Dan Gohman
Author: djg Date: Wed Feb 13 14:56:53 2008 New Revision: 47085 URL: http://llvm.org/viewvc/llvm-project?rev=47085view=rev Log: Fix a typo in a comment. Modified: llvm/trunk/include/llvm/ADT/APInt.h Modified: llvm/trunk/include/llvm/ADT/APInt.h URL:

Re: [llvm-commits] [llvm] r47054 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/X86/arg-cast.ll

2008-02-13 Thread Chris Lattner
On Feb 13, 2008, at 10:16 AM, Dan Gohman wrote: Hi Chris, On Feb 12, 2008, at 11:39 PM, Chris Lattner wrote: URL: http://llvm.org/viewvc/llvm-project?rev=47054view=rev Log: In SDISel, for targets that support FORMAL_ARGUMENTS nodes, lower this node as soon as we create it in SDISel.

Re: [llvm-commits] [llvm] r47046 - in /llvm/trunk: include/llvm/CodeGen/LiveIntervalAnalysis.h lib/CodeGen/SimpleRegisterCoalescing.cpp lib/CodeGen/SimpleRegisterCoalescing.h

2008-02-13 Thread Chris Lattner
On Feb 13, 2008, at 10:58 AM, Evan Cheng wrote: Ah, I see. Well this seems like an independently useful change that will both speed up and simplify coalescing. Are you interested in tackling it as part of this project? That's the plan. Without RAUW change, I can't enable this

[llvm-commits] [llvm] r47086 - in /llvm/trunk: include/llvm/ADT/APInt.h lib/Support/APInt.cpp

2008-02-13 Thread Dan Gohman
Author: djg Date: Wed Feb 13 15:11:05 2008 New Revision: 47086 URL: http://llvm.org/viewvc/llvm-project?rev=47086view=rev Log: Add countTrailingOnes member functions to APInt. Modified: llvm/trunk/include/llvm/ADT/APInt.h llvm/trunk/lib/Support/APInt.cpp Modified:

[llvm-commits] [poolalloc] r47092 - /poolalloc/trunk/lib/PoolAllocate/PoolAllocate.cpp

2008-02-13 Thread John Criswell
Author: criswell Date: Wed Feb 13 16:22:22 2008 New Revision: 47092 URL: http://llvm.org/viewvc/llvm-project?rev=47092view=rev Log: Fix compilation when SAFECODE is defined. Due to some strange errors when the C++ compiler tries to create a copy constructor for struct FuncInfo, I cannot make

[llvm-commits] [llvm] r47093 - in /llvm/trunk: lib/Transforms/Scalar/LoopIndexSplit.cpp test/Transforms/LoopIndexSplit/2008-02-13-LoopLatchPHI.ll

2008-02-13 Thread Devang Patel
Author: dpatel Date: Wed Feb 13 16:23:07 2008 New Revision: 47093 URL: http://llvm.org/viewvc/llvm-project?rev=47093view=rev Log: A loop latch phi node may have uses inside loop, not just in loop header. Added: llvm/trunk/test/Transforms/LoopIndexSplit/2008-02-13-LoopLatchPHI.ll Modified:

[llvm-commits] [poolalloc] r47094 - in /poolalloc/trunk: autoconf/aclocal.m4 autoconf/configure.ac configure

2008-02-13 Thread John Criswell
Author: criswell Date: Wed Feb 13 16:23:55 2008 New Revision: 47094 URL: http://llvm.org/viewvc/llvm-project?rev=47094view=rev Log: Added the --with-safecodeobj option to configure the location of SAFECode's object tree. Fixed Makefiles so that they can now enable SAFECode builds properly.

[llvm-commits] [poolalloc] r47095 - /poolalloc/trunk/Makefile.common.in

2008-02-13 Thread John Criswell
Author: criswell Date: Wed Feb 13 16:25:17 2008 New Revision: 47095 URL: http://llvm.org/viewvc/llvm-project?rev=47095view=rev Log: Enhanced Makefiles so that building with SAFECode works. Modified: poolalloc/trunk/Makefile.common.in Modified: poolalloc/trunk/Makefile.common.in URL:

[llvm-commits] [llvm] r47096 - in /llvm/trunk: include/llvm/CodeGen/ include/llvm/Target/ lib/CodeGen/SelectionDAG/ lib/Target/ARM/ lib/Target/CellSPU/ lib/Target/PowerPC/ lib/Target/Sparc/ lib/Target

2008-02-13 Thread Dan Gohman
Author: djg Date: Wed Feb 13 16:28:48 2008 New Revision: 47096 URL: http://llvm.org/viewvc/llvm-project?rev=47096view=rev Log: Simplify some logic in ComputeMaskedBits. And change ComputeMaskedBits to pass the mask APInt by value, not by reference. Modified:

[llvm-commits] [llvm] r47090 - in /llvm/trunk: include/llvm/ADT/APInt.h lib/Transforms/Scalar/InstructionCombining.cpp

2008-02-13 Thread Dan Gohman
Author: djg Date: Wed Feb 13 16:09:18 2008 New Revision: 47090 URL: http://llvm.org/viewvc/llvm-project?rev=47090view=rev Log: Rename APInt's isPositive to isNonNegative, to reflect what it actually does. Modified: llvm/trunk/include/llvm/ADT/APInt.h

[llvm-commits] [llvm] r47089 - in /llvm/trunk: lib/Transforms/Scalar/LoopIndexSplit.cpp test/Transforms/LoopIndexSplit/2008-02-13-LoopLatch.ll

2008-02-13 Thread Devang Patel
Author: dpatel Date: Wed Feb 13 16:06:36 2008 New Revision: 47089 URL: http://llvm.org/viewvc/llvm-project?rev=47089view=rev Log: While moving exit condition, do not drop loop latch on the floor. Added: llvm/trunk/test/Transforms/LoopIndexSplit/2008-02-13-LoopLatch.ll Modified:

[llvm-commits] [llvm] r47097 - /llvm/trunk/include/llvm/ADT/APInt.h

2008-02-13 Thread Dan Gohman
Author: djg Date: Wed Feb 13 16:32:12 2008 New Revision: 47097 URL: http://llvm.org/viewvc/llvm-project?rev=47097view=rev Log: Fix a typo in a comment. Modified: llvm/trunk/include/llvm/ADT/APInt.h Modified: llvm/trunk/include/llvm/ADT/APInt.h URL:

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

2008-02-13 Thread Dan Gohman
Author: djg Date: Wed Feb 13 17:13:32 2008 New Revision: 47101 URL: http://llvm.org/viewvc/llvm-project?rev=47101view=rev Log: Allow the APInt form of ComputeMaskedBits to operate on i128 types. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Modified:

Re: [llvm-commits] [llvm] r47096 - in /llvm/trunk: include/llvm/CodeGen/ include/llvm/Target/ lib/CodeGen/SelectionDAG/ lib/Target/ARM/ lib/Target/CellSPU/ lib/Target/PowerPC/ lib/Target/Sparc/ lib/Ta

2008-02-13 Thread Chris Lattner
On Feb 13, 2008, at 2:28 PM, Dan Gohman wrote: Author: djg Date: Wed Feb 13 16:28:48 2008 New Revision: 47096 URL: http://llvm.org/viewvc/llvm-project?rev=47096view=rev Log: Simplify some logic in ComputeMaskedBits. And change ComputeMaskedBits to pass the mask APInt by value, not by

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

2008-02-13 Thread Dan Gohman
Author: djg Date: Wed Feb 13 17:07:24 2008 New Revision: 47099 URL: http://llvm.org/viewvc/llvm-project?rev=47099view=rev Log: Assigning an APInt to 0 with plain assignment gives it a one-bit size. Initialize these APInts to properly-sized zero values. Modified:

Re: [llvm-commits] [llvm] r47086 - in /llvm/trunk: include/llvm/ADT/APInt.h lib/Support/APInt.cpp

2008-02-13 Thread Bill Wendling
Hi Dan, +uint32_t APInt::countTrailingOnes() const { + if (isSingleWord()) +return std::min(uint32_t(CountTrailingOnes_64(VAL)), BitWidth); + uint32_t Count = 0; + uint32_t i = 0; + for (; i getNumWords() pVal[i] == -1; ++i) This compare leads to this warning: llvm[1]: Compiling

[llvm-commits] [llvm] r47102 - /llvm/trunk/test/CodeGen/X86/arg-cast.ll

2008-02-13 Thread Evan Cheng
Author: evancheng Date: Wed Feb 13 19:32:53 2008 New Revision: 47102 URL: http://llvm.org/viewvc/llvm-project?rev=47102view=rev Log: Fix test. Modified: llvm/trunk/test/CodeGen/X86/arg-cast.ll Modified: llvm/trunk/test/CodeGen/X86/arg-cast.ll URL:

Re: [llvm-commits] [llvm] r47102 - /llvm/trunk/test/CodeGen/X86/arg-cast.ll

2008-02-13 Thread Chris Lattner
On Feb 13, 2008, at 5:32 PM, Evan Cheng wrote: Author: evancheng Date: Wed Feb 13 19:32:53 2008 New Revision: 47102 URL: http://llvm.org/viewvc/llvm-project?rev=47102view=rev Log: Fix test. Doh, thanks Evan. -Chris ___ llvm-commits mailing

[llvm-commits] [llvm] r47105 - /llvm/trunk/tools/bugpoint/FindBugs.cpp

2008-02-13 Thread Nick Lewycky
Author: nicholas Date: Wed Feb 13 23:01:46 2008 New Revision: 47105 URL: http://llvm.org/viewvc/llvm-project?rev=47105view=rev Log: PR2027, Fix bugpoint's -find-bugs option, clean up the code. Modified: llvm/trunk/tools/bugpoint/FindBugs.cpp Modified: llvm/trunk/tools/bugpoint/FindBugs.cpp

[llvm-commits] [llvm] r47106 - in /llvm/trunk: lib/Target/X86/README-FPStack.txt test/CodeGen/X86/zero-remat.ll

2008-02-13 Thread Chris Lattner
Author: lattner Date: Wed Feb 13 23:39:46 2008 New Revision: 47106 URL: http://llvm.org/viewvc/llvm-project?rev=47106view=rev Log: This readme entry is done, testcase here: CodeGen/X86/zero-remat.ll Modified: llvm/trunk/lib/Target/X86/README-FPStack.txt

[llvm-commits] [llvm] r47108 - /llvm/trunk/lib/Target/X86/README-MMX.txt

2008-02-13 Thread Chris Lattner
Author: lattner Date: Wed Feb 13 23:43:18 2008 New Revision: 47108 URL: http://llvm.org/viewvc/llvm-project?rev=47108view=rev Log: the mid-level optimizer removes this stuff. Modified: llvm/trunk/lib/Target/X86/README-MMX.txt Modified: llvm/trunk/lib/Target/X86/README-MMX.txt URL:

[llvm-commits] [llvm] r47107 - /llvm/trunk/lib/Target/X86/README-FPStack.txt

2008-02-13 Thread Chris Lattner
Author: lattner Date: Wed Feb 13 23:41:38 2008 New Revision: 47107 URL: http://llvm.org/viewvc/llvm-project?rev=47107view=rev Log: this one is easy. Modified: llvm/trunk/lib/Target/X86/README-FPStack.txt Modified: llvm/trunk/lib/Target/X86/README-FPStack.txt URL:

[llvm-commits] [llvm] r47109 - in /llvm/trunk/lib/Target/X86: README-SSE.txt README.txt

2008-02-13 Thread Chris Lattner
Author: lattner Date: Thu Feb 14 00:19:02 2008 New Revision: 47109 URL: http://llvm.org/viewvc/llvm-project?rev=47109view=rev Log: upgrade some entries, remove stuff that is done. Modified: llvm/trunk/lib/Target/X86/README-SSE.txt llvm/trunk/lib/Target/X86/README.txt Modified:

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

2008-02-13 Thread Nick Lewycky
Author: nicholas Date: Thu Feb 14 01:11:24 2008 New Revision: 47111 URL: http://llvm.org/viewvc/llvm-project?rev=47111view=rev Log: Fix PR2032. Inform the alias analysis of changes to the underlying program. Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp Modified:

[llvm-commits] [llvm] r47113 - /llvm/trunk/test/Transforms/GVN/2008-02-13-NewPHI.ll

2008-02-13 Thread Nick Lewycky
Author: nicholas Date: Thu Feb 14 01:15:11 2008 New Revision: 47113 URL: http://llvm.org/viewvc/llvm-project?rev=47113view=rev Log: Testcase for PR2032. Added: llvm/trunk/test/Transforms/GVN/2008-02-13-NewPHI.ll Added: llvm/trunk/test/Transforms/GVN/2008-02-13-NewPHI.ll URL:

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

2008-02-13 Thread Nate Begeman
Author: sampo Date: Thu Feb 14 01:23:11 2008 New Revision: 47114 URL: http://llvm.org/viewvc/llvm-project?rev=47114view=rev Log: Nuke dead comment Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h URL:

[llvm-commits] [llvm] r47115 - in /llvm/trunk/lib/Target: CellSPU/SPUOperands.td Target.td

2008-02-13 Thread Nate Begeman
Author: sampo Date: Thu Feb 14 01:25:46 2008 New Revision: 47115 URL: http://llvm.org/viewvc/llvm-project?rev=47115view=rev Log: Move some useful operands up into the all-targets .td Modified: llvm/trunk/lib/Target/CellSPU/SPUOperands.td llvm/trunk/lib/Target/Target.td Modified:

[llvm-commits] [llvm] r47116 - /llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp

2008-02-13 Thread Chris Lattner
Author: lattner Date: Thu Feb 14 01:39:01 2008 New Revision: 47116 URL: http://llvm.org/viewvc/llvm-project?rev=47116view=rev Log: simplify code, no functionality change. Modified: llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp Modified: llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp

[llvm-commits] [llvm] r47117 - in /llvm/trunk: include/llvm/CodeGen/MachineOperand.h lib/CodeGen/MachineInstr.cpp

2008-02-13 Thread Nate Begeman
Author: sampo Date: Thu Feb 14 01:39:30 2008 New Revision: 47117 URL: http://llvm.org/viewvc/llvm-project?rev=47117view=rev Log: Support a new type of MachineOperand, MO_FPImmediate, used for holding FP Immediates, crazily enough Modified: llvm/trunk/include/llvm/CodeGen/MachineOperand.h