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

2008-02-18 Thread Dan Gohman
Author: djg Date: Mon Feb 18 13:34:53 2008 New Revision: 47282 URL: http://llvm.org/viewvc/llvm-project?rev=47282&view=rev Log: Chris pointed out that it's not necessary to set i64 MUL to Expand on x86-32 since i64 itself is not a Legal type. And, update some comments. Modified: llvm/trunk/li

[llvm-commits] [llvm] r47277 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/mul-remat.ll

2008-02-18 Thread Dan Gohman
Author: djg Date: Mon Feb 18 11:55:26 2008 New Revision: 47277 URL: http://llvm.org/viewvc/llvm-project?rev=47277&view=rev Log: Don't mark scalar integer multiplication as Expand on x86, since x86 has plain one-result scalar integer multiplication instructions. This avoids expanding such instructi

[llvm-commits] [llvm] r47271 - /llvm/trunk/tools/bugpoint/bugpoint.cpp

2008-02-18 Thread Dan Gohman
Author: djg Date: Mon Feb 18 11:15:45 2008 New Revision: 47271 URL: http://llvm.org/viewvc/llvm-project?rev=47271&view=rev Log: Fix a missing space in the description of the find-bugs option. Modified: llvm/trunk/tools/bugpoint/bugpoint.cpp Modified: llvm/trunk/tools/bugpoint/bugpoint.cpp UR

[llvm-commits] [llvm] r47198 - in /llvm/trunk: include/llvm/CodeGen/ScheduleDAG.h lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

2008-02-15 Thread Dan Gohman
Author: djg Date: Fri Feb 15 18:36:48 2008 New Revision: 47198 URL: http://llvm.org/viewvc/llvm-project?rev=47198&view=rev Log: Rename CountMemOperands to ComputeMemOperandsEnd to reflect what it actually does. Simplify CountOperands a little by reusing ComputeMemOperandsEnd. And reword some comme

Re: [llvm-commits] [llvm] r47177 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

2008-02-15 Thread Dan Gohman
heng wrote: > Hi Dan, > > This is not right. You are assuming def operands must be first in the > operand list. But that's not necessary the case. > > Evan > > On Feb 15, 2008, at 12:59 PM, Dan Gohman wrote: > >> Author: djg >> Date: Fri Feb 15 14:59:17

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

2008-02-15 Thread Dan Gohman
Author: djg Date: Fri Feb 15 18:25:40 2008 New Revision: 47196 URL: http://llvm.org/viewvc/llvm-project?rev=47196&view=rev Log: Revert 47177, which was incorrect. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRLi

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

2008-02-15 Thread Dan Gohman
Author: djg Date: Fri Feb 15 14:59:17 2008 New Revision: 47177 URL: http://llvm.org/viewvc/llvm-project?rev=47177&view=rev Log: Skip over the defs and start at the uses when looking for operands with the TIED_TO attribute. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp M

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

2008-02-15 Thread Dan Gohman
Author: djg Date: Fri Feb 15 14:50:13 2008 New Revision: 47176 URL: http://llvm.org/viewvc/llvm-project?rev=47176&view=rev Log: Use the TargetInstrDescr to determine the number of operands that should be checked for the TIED_TO attribute instead of using CountOperands. Modified: llvm/trunk/li

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

2008-02-15 Thread Dan Gohman
Author: djg Date: Fri Feb 15 12:11:59 2008 New Revision: 47163 URL: http://llvm.org/viewvc/llvm-project?rev=47163&view=rev Log: Use StoreSDNode::getValue instead of calling getOperand directly with a hard-coded operand number. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Mod

[llvm-commits] [llvm] r47151 - /llvm/trunk/include/llvm/CodeGen/MemOperand.h

2008-02-14 Thread Dan Gohman
Author: djg Date: Thu Feb 14 19:29:57 2008 New Revision: 47151 URL: http://llvm.org/viewvc/llvm-project?rev=47151&view=rev Log: Change MemOperand's size and offset to be 64-bit. Modified: llvm/trunk/include/llvm/CodeGen/MemOperand.h Modified: llvm/trunk/include/llvm/CodeGen/MemOperand.h URL:

Re: [llvm-commits] [llvm] r46827 - memoperands #1

2008-02-14 Thread Dan Gohman
On Feb 12, 2008, at 1:42 PM, Chris Lattner wrote: > > On Feb 12, 2008, at 11:27 AM, Dan Gohman wrote: > >> Hi Chris, >> >> Thanks for the careful review! I've responded to parts of it already, >> and I'll >> be responding to more soon. > &g

[llvm-commits] [llvm] r47138 - /llvm/trunk/lib/Support/APInt.cpp

2008-02-14 Thread Dan Gohman
Author: djg Date: Thu Feb 14 16:38:45 2008 New Revision: 47138 URL: http://llvm.org/viewvc/llvm-project?rev=47138&view=rev Log: Fix a warning about comparison between signed and unsigned, being consistent with the rest of the APInt implementation. Modified: llvm/trunk/lib/Support/APInt.cpp M

Re: [llvm-commits] [llvm] r47039 - 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 Dan Gohman
On Feb 12, 2008, at 10:50 PM, Chris Lattner wrote: > On Feb 12, 2008, at 4:35 PM, Dan Gohman wrote: >> >> +++ llvm/trunk/include/llvm/CodeGen/SelectionDAG.h Tue Feb 12 >> 18:35:47 2008 >> @@ -556,6 +556,12 @@ >> /// bitsets. This code only analyzes bits in M

[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=47101&view=rev Log: Allow the APInt form of ComputeMaskedBits to operate on i128 types. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Modified: llvm/trunk/lib/CodeGen/

[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=47099&view=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: llvm/trunk/lib/Target/X86/X86

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

2008-02-13 Thread Dan Gohman
Author: djg Date: Wed Feb 13 16:43:25 2008 New Revision: 47098 URL: http://llvm.org/viewvc/llvm-project?rev=47098&view=rev Log: Avoid setting bits that aren't demanded. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.c

[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=47097&view=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: http://llvm.org/viewvc/llvm-project/llvm/

[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=47096&view=rev Log: Simplify some logic in ComputeMaskedBits. And change ComputeMaskedBits to pass the mask APInt by value, not by reference. Modified: llvm/trunk/include/llvm/CodeGen/

[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=47090&view=rev Log: Rename APInt's isPositive to isNonNegative, to reflect what it actually does. Modified: llvm/trunk/include/llvm/ADT/APInt.h llvm/trunk/lib/Transforms/Scalar/Inst

[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=47086&view=rev Log: Add countTrailingOnes member functions to APInt. Modified: llvm/trunk/include/llvm/ADT/APInt.h llvm/trunk/lib/Support/APInt.cpp Modified: llvm/trunk/include/llv

[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=47085&view=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: http://llvm.org/viewvc/llvm-project/llvm/

[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=47084&view=rev Log: Add count{Leading,Trailing}Ones_{32,64} functions with simple implementations. Modified: llvm/trunk/include/llvm/Support/MathExtras.h Modified: llvm/trunk/include/l

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=47054&view=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. T

[llvm-commits] [llvm] r47039 - 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-12 Thread Dan Gohman
Author: djg Date: Tue Feb 12 18:35:47 2008 New Revision: 47039 URL: http://llvm.org/viewvc/llvm-project?rev=47039&view=rev Log: Convert SelectionDAG::ComputeMaskedBits to use APInt instead of uint64_t. Add an overload that supports the uint64_t interface for use by clients that haven't been update

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

2008-02-12 Thread Dan Gohman
Author: djg Date: Tue Feb 12 15:47:33 2008 New Revision: 47032 URL: http://llvm.org/viewvc/llvm-project?rev=47032&view=rev Log: Change APInt::getBitsSet to accept a "half-open" range, where the hiBit parameter marks the index one past the last desired set bit. Modified: llvm/trunk/include/llv

Re: [llvm-commits] [llvm] r46827 - memoperands #1

2008-02-12 Thread Dan Gohman
Hi Chris, Thanks for the careful review! I've responded to parts of it already, and I'll be responding to more soon. On Feb 10, 2008, at 11:56 AM, Chris Lattner wrote: > > Instead of Size here, would it make sense to store an MVT? That would > seem to capture strictly more information, though

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

2008-02-12 Thread Dan Gohman
Author: djg Date: Tue Feb 12 12:52:52 2008 New Revision: 47015 URL: http://llvm.org/viewvc/llvm-project?rev=47015&view=rev Log: Add a doxygen comment for SrcValueSDNode, to make its purpose clear and to clarify how it differs from MemOperandSDNode. Modified: llvm/trunk/include/llvm/CodeGen/Se

Re: [llvm-commits] [llvm] r46827 - MemOperands #2/2

2008-02-12 Thread Dan Gohman
On Feb 12, 2008, at 12:12 AM, Evan Cheng wrote: >>> >>> + >>> +// Save loads/stores matched by a pattern. >>> +if (!N->isLeaf() && N->getName().empty()) { >>> + std::string EnumName = N->getOperator()- >>> >getValueAsString("Opcode"); >>> + if (EnumName == "ISD::LOAD" || >>> +

Re: [llvm-commits] [llvm] r47006 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp

2008-02-12 Thread Dan Gohman
Hi Eli, Could you add a regression test from the testcase in the PR, to verify that the load is optimized out? Thanks, Dan On Feb 12, 2008, at 4:08 AM, Eli Friedman wrote: > Author: efriedma > Date: Tue Feb 12 06:08:14 2008 > New Revision: 47006 > > URL: http://llvm.org/viewvc/llvm-project?rev

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

2008-02-11 Thread Dan Gohman
Author: djg Date: Mon Feb 11 17:45:14 2008 New Revision: 46978 URL: http://llvm.org/viewvc/llvm-project?rev=46978&view=rev Log: Correct the order of the arguments in the examples in the comments for APInt::getBitsSet. And fix an off-by-one bug in "wrapping" mode. Modified: llvm/trunk/include/

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

2008-02-11 Thread Dan Gohman
Author: djg Date: Mon Feb 11 13:00:34 2008 New Revision: 46964 URL: http://llvm.org/viewvc/llvm-project?rev=46964&view=rev Log: >From Chris' review: use isa instead of explicitly using classof. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Modified: llvm/trunk/lib/CodeGen/Sel

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

2008-02-11 Thread Dan Gohman
Author: djg Date: Mon Feb 11 13:00:03 2008 New Revision: 46963 URL: http://llvm.org/viewvc/llvm-project?rev=46963&view=rev Log: >From Chris' review: minor corrections in comments. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/Sche

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

2008-02-11 Thread Dan Gohman
Author: djg Date: Mon Feb 11 12:58:42 2008 New Revision: 46962 URL: http://llvm.org/viewvc/llvm-project?rev=46962&view=rev Log: >From Chris' review: use cast instead of dyn_cast with an assert. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Modified: llvm/trunk/lib/CodeGen/Sel

[llvm-commits] [llvm] r46961 - /llvm/trunk/lib/CodeGen/PseudoSourceValue.cpp

2008-02-11 Thread Dan Gohman
Author: djg Date: Mon Feb 11 12:57:43 2008 New Revision: 46961 URL: http://llvm.org/viewvc/llvm-project?rev=46961&view=rev Log: >From Chris' review: fix 80 column violations Modified: llvm/trunk/lib/CodeGen/PseudoSourceValue.cpp Modified: llvm/trunk/lib/CodeGen/PseudoSourceValue.cpp URL: ht

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

2008-02-11 Thread Dan Gohman
Author: djg Date: Mon Feb 11 12:56:50 2008 New Revision: 46960 URL: http://llvm.org/viewvc/llvm-project?rev=46960&view=rev Log: >From Chris' review: change MemOperandSDNode's constructor to pass its argument by reference, rather than by value. Modified: llvm/trunk/include/llvm/CodeGen/Select

Re: [llvm-commits] [llvm] r46850 - in /llvm/trunk: lib/Target/X86/X86ISelDAGToDAG.cpp lib/Target/X86/X86Instr64bit.td lib/Target/X86/X86InstrInfo.td lib/Target/X86/X86Subtarget.cpp lib/Target/X86/X86S

2008-02-11 Thread Dan Gohman
Hi Evan, This breaks these: test/CodeGen/X86/fold-mul-lohi.ll test/CodeGen/X86/stride-nine-with-base-reg.ll test/CodeGen/X86/stride-reuse.ll on Linux. These tests should probably explicitly set the relocation model to static so that they always test what they're intended to test. Dan On Feb

[llvm-commits] [llvm] r46899 - in /llvm/trunk: include/llvm/CodeGen/SelectionDAG.h include/llvm/CodeGen/SelectionDAGNodes.h lib/CodeGen/SelectionDAG/SelectionDAG.cpp

2008-02-08 Thread Dan Gohman
Author: djg Date: Fri Feb 8 16:59:30 2008 New Revision: 46899 URL: http://llvm.org/viewvc/llvm-project?rev=46899&view=rev Log: Change ConstantSDNode to store an APInt instead of a uint64_t, and begin adding some methods to use it this way. Modified: llvm/trunk/include/llvm/CodeGen/SelectionD

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

2008-02-08 Thread Dan Gohman
Author: djg Date: Fri Feb 8 15:58:15 2008 New Revision: 46894 URL: http://llvm.org/viewvc/llvm-project?rev=46894&view=rev Log: Add an isSignedIntN, like isIntN but for signed integer values instead of unsigned. Modified: llvm/trunk/include/llvm/ADT/APInt.h Modified: llvm/trunk/include/llvm/

[llvm-commits] [llvm] r46877 - in /llvm/trunk/lib/Target/X86: X86CodeEmitter.cpp X86ISelLowering.cpp X86RegisterInfo.cpp X86RegisterInfo.h

2008-02-07 Thread Dan Gohman
Author: djg Date: Thu Feb 7 21:29:40 2008 New Revision: 46877 URL: http://llvm.org/viewvc/llvm-project?rev=46877&view=rev Log: Avoid needlessly casting away const qualifiers. Modified: llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp llvm/trunk/lib/Target/X86/X86ISelLowering.cpp llvm/tru

[llvm-commits] [llvm] r46876 - in /llvm/trunk: include/llvm/CodeGen/SelectionDAGNodes.h lib/CodeGen/SelectionDAG/SelectionDAG.cpp

2008-02-07 Thread Dan Gohman
Author: djg Date: Thu Feb 7 21:26:46 2008 New Revision: 46876 URL: http://llvm.org/viewvc/llvm-project?rev=46876&view=rev Log: Avoid needlessly casting away const qualifiers. Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cp

[llvm-commits] [llvm] r46857 - in /llvm/trunk: include/llvm/CodeGen/PseudoSourceValue.h lib/CodeGen/PseudoSourceValue.cpp lib/CodeGen/SelectionDAG/LegalizeDAG.cpp lib/CodeGen/SelectionDAG/SelectionDAG

2008-02-07 Thread Dan Gohman
Author: djg Date: Thu Feb 7 12:41:25 2008 New Revision: 46857 URL: http://llvm.org/viewvc/llvm-project?rev=46857&view=rev Log: Follow Chris' suggestion; change the PseudoSourceValue accessors to return pointers instead of references, since this is always what is needed. Modified: llvm/trunk/

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

2008-02-07 Thread Dan Gohman
Author: djg Date: Thu Feb 7 10:28:05 2008 New Revision: 46854 URL: http://llvm.org/viewvc/llvm-project?rev=46854&view=rev Log: Add SourceValue information for outgoing argument stores on x86. Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Modified: llvm/trunk/lib/Target/X86/X86ISel

[llvm-commits] [llvm] r46853 - /llvm/trunk/lib/CodeGen/MachineInstr.cpp

2008-02-07 Thread Dan Gohman
Author: djg Date: Thu Feb 7 10:18:00 2008 New Revision: 46853 URL: http://llvm.org/viewvc/llvm-project?rev=46853&view=rev Log: Don't abort if a MemOperand is missing a SourceValue; just print it as . And make some minor adjustments to the MemOperand dump format. Modified: llvm/trunk/lib/Cod

[llvm-commits] [llvm] r46836 - /llvm/trunk/lib/VMCore/Constants.cpp

2008-02-06 Thread Dan Gohman
Author: djg Date: Wed Feb 6 20:30:40 2008 New Revision: 46836 URL: http://llvm.org/viewvc/llvm-project?rev=46836&view=rev Log: Fix a typo in a comment. Modified: llvm/trunk/lib/VMCore/Constants.cpp Modified: llvm/trunk/lib/VMCore/Constants.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/

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

2008-02-06 Thread Dan Gohman
Author: djg Date: Wed Feb 6 17:09:15 2008 New Revision: 46833 URL: http://llvm.org/viewvc/llvm-project?rev=46833&view=rev Log: Add support to FoldingSet for hashing APInt objects. Modified: llvm/trunk/include/llvm/ADT/FoldingSet.h llvm/trunk/lib/Support/FoldingSet.cpp Modified: llvm/tru

Re: [llvm-commits] [llvm] r46556 - in /llvm/trunk: include/llvm/CodeGen/PseudoSourceValue.h include/llvm/Value.h lib/CodeGen/PseudoSourceValue.cpp

2008-02-05 Thread Dan Gohman
> Some comments on the patch: > > + > + // Save loads/stores matched by a pattern. > + if (!N->isLeaf() && N->getName().empty() && > + ((N->getOperator()->getName() == "ld") || > + (N->getOperator()->getName() == "st") || > + (N->getOperator()->getName() == "ist"))) { > + LSI.push_back(Root

Re: [llvm-commits] [llvm] r46587 - in /llvm/trunk: include/llvm/CodeGen/SelectionDAGNodes.h lib/CodeGen/SelectionDAG/LegalizeDAG.cpp lib/CodeGen/SelectionDAG/SelectionDAG.cpp lib/CodeGen/SelectionDAG/

2008-01-31 Thread Dan Gohman
> How about changing it to FLT_ROUND (no s) or something else? Using a > trailing '_' seems silly. FLT_ROUNDS is a specific standard macro, and the opcode in question is for implementing it. I'd prefer to not change any letters in the spelling. FWIW, it's consisten

Re: [llvm-commits] [llvm] r46556 - in /llvm/trunk: include/llvm/CodeGen/PseudoSourceValue.h include/llvm/Value.h lib/CodeGen/PseudoSourceValue.cpp

2008-01-31 Thread Dan Gohman
tInt::getTrue() handle's the 'i1 > 1' singleton for example. Thanks. I'll take a look at it. Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

[llvm-commits] [llvm] r46591 - in /llvm/trunk: include/llvm/Analysis/ConstantFolding.h lib/Analysis/ConstantFolding.cpp lib/Analysis/ScalarEvolution.cpp

2008-01-30 Thread Dan Gohman
Author: djg Date: Wed Jan 30 19:05:10 2008 New Revision: 46591 URL: http://llvm.org/viewvc/llvm-project?rev=46591&view=rev Log: Avoid unnecessarily casting away const, fixing a FIXME. Modified: llvm/trunk/include/llvm/Analysis/ConstantFolding.h llvm/trunk/lib/Analysis/ConstantFolding.cpp

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

2008-01-30 Thread Dan Gohman
Author: djg Date: Wed Jan 30 19:01:48 2008 New Revision: 46590 URL: http://llvm.org/viewvc/llvm-project?rev=46590&view=rev Log: Avoid unnecessarily casting away const. Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp URL: http:/

[llvm-commits] [llvm] r46588 - /llvm/trunk/include/llvm/CodeGen/LiveVariables.h

2008-01-30 Thread Dan Gohman
Author: djg Date: Wed Jan 30 18:44:33 2008 New Revision: 46588 URL: http://llvm.org/viewvc/llvm-project?rev=46588&view=rev Log: Fix a typo in a comment. Modified: llvm/trunk/include/llvm/CodeGen/LiveVariables.h Modified: llvm/trunk/include/llvm/CodeGen/LiveVariables.h URL: http://llvm.org/v

[llvm-commits] [llvm] r46587 - in /llvm/trunk: include/llvm/CodeGen/SelectionDAGNodes.h lib/CodeGen/SelectionDAG/LegalizeDAG.cpp lib/CodeGen/SelectionDAG/SelectionDAG.cpp lib/CodeGen/SelectionDAG/Sele

2008-01-30 Thread Dan Gohman
Author: djg Date: Wed Jan 30 18:41:03 2008 New Revision: 46587 URL: http://llvm.org/viewvc/llvm-project?rev=46587&view=rev Log: Rename ISD::FLT_ROUNDS to ISD::FLT_ROUNDS_ to avoid conflicting with the real FLT_ROUNDS (defined in ). Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

[llvm-commits] [llvm] r46556 - in /llvm/trunk: include/llvm/CodeGen/PseudoSourceValue.h include/llvm/Value.h lib/CodeGen/PseudoSourceValue.cpp

2008-01-30 Thread Dan Gohman
Author: djg Date: Wed Jan 30 10:35:31 2008 New Revision: 46556 URL: http://llvm.org/viewvc/llvm-project?rev=46556&view=rev Log: Add a new PseudoSourceValue class, which will be used to help track memory reference information in the backend. Most of this was written by Florian Brander, cleanup and

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

2008-01-29 Thread Dan Gohman
Author: djg Date: Tue Jan 29 18:15:11 2008 New Revision: 46538 URL: http://llvm.org/viewvc/llvm-project?rev=46538&view=rev Log: Factor the addressing mode and the load/store VT out of LoadSDNode and StoreSDNode into their common base class LSBaseSDNode. Member functions getLoadedVT and getStoredVT

[llvm-commits] [llvm] r46514 - in /llvm/trunk/lib: Archive/ Bitcode/Reader/ CodeGen/ CodeGen/SelectionDAG/ ExecutionEngine/Interpreter/ System/Win32/ Transforms/IPO/ Transforms/Scalar/

2008-01-29 Thread Dan Gohman
Author: djg Date: Tue Jan 29 07:02:09 2008 New Revision: 46514 URL: http://llvm.org/viewvc/llvm-project?rev=46514&view=rev Log: Use empty() instead of comparing size() with zero. Modified: llvm/trunk/lib/Archive/ArchiveReader.cpp llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp llvm/tr

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

2008-01-29 Thread Dan Gohman
Author: djg Date: Tue Jan 29 06:43:50 2008 New Revision: 46513 URL: http://llvm.org/viewvc/llvm-project?rev=46513&view=rev Log: Fix a typo in a comment. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp URL

[llvm-commits] [llvm] r46512 - /llvm/trunk/utils/vim/llvm.vim

2008-01-29 Thread Dan Gohman
Author: djg Date: Tue Jan 29 06:35:50 2008 New Revision: 46512 URL: http://llvm.org/viewvc/llvm-project?rev=46512&view=rev Log: Update this file for 2.0 syntax. Modified: llvm/trunk/utils/vim/llvm.vim Modified: llvm/trunk/utils/vim/llvm.vim URL: http://llvm.org/viewvc/llvm-project/llvm/trun

[llvm-commits] [llvm] r46511 - /llvm/trunk/include/llvm/Analysis/LoopInfo.h

2008-01-29 Thread Dan Gohman
Author: djg Date: Tue Jan 29 06:12:40 2008 New Revision: 46511 URL: http://llvm.org/viewvc/llvm-project?rev=46511&view=rev Log: Add comments describing what the loop depth values mean. Also, make a minor simplification to the loop depth calculation code. Modified: llvm/trunk/include/llvm/Anal

[llvm-commits] [llvm] r46510 - in /llvm/trunk/lib/VMCore: Module.cpp Pass.cpp PassManager.cpp

2008-01-29 Thread Dan Gohman
Author: djg Date: Tue Jan 29 06:09:55 2008 New Revision: 46510 URL: http://llvm.org/viewvc/llvm-project?rev=46510&view=rev Log: Fix 80-col violations. Modified: llvm/trunk/lib/VMCore/Module.cpp llvm/trunk/lib/VMCore/Pass.cpp llvm/trunk/lib/VMCore/PassManager.cpp Modified: llvm/trunk/

[llvm-commits] [llvm] r46509 - /llvm/trunk/lib/Support/APFloat.cpp

2008-01-29 Thread Dan Gohman
Author: djg Date: Tue Jan 29 06:08:20 2008 New Revision: 46509 URL: http://llvm.org/viewvc/llvm-project?rev=46509&view=rev Log: Remove top-level const qualifiers from casts, avoiding associated compiler warnings. Modified: llvm/trunk/lib/Support/APFloat.cpp Modified: llvm/trunk/lib/Support/A

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

2008-01-29 Thread Dan Gohman
Author: djg Date: Tue Jan 29 06:07:11 2008 New Revision: 46508 URL: http://llvm.org/viewvc/llvm-project?rev=46508&view=rev Log: Fix a typo in a comment. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp URL

[llvm-commits] [llvm] r46507 - /llvm/trunk/include/llvm/CodeGen/LiveVariables.h

2008-01-29 Thread Dan Gohman
Author: djg Date: Tue Jan 29 06:06:33 2008 New Revision: 46507 URL: http://llvm.org/viewvc/llvm-project?rev=46507&view=rev Log: Fix a typo in a comment. Modified: llvm/trunk/include/llvm/CodeGen/LiveVariables.h Modified: llvm/trunk/include/llvm/CodeGen/LiveVariables.h URL: http://llvm.org/v

[llvm-commits] [llvm] r46506 - in /llvm/trunk: include/llvm/CodeGen/MachineOperand.h include/llvm/CodeGen/MachineRegisterInfo.h include/llvm/PassSupport.h lib/VMCore/AsmWriter.cpp

2008-01-29 Thread Dan Gohman
Author: djg Date: Tue Jan 29 05:36:12 2008 New Revision: 46506 URL: http://llvm.org/viewvc/llvm-project?rev=46506&view=rev Log: Add explicit keywords. Modified: llvm/trunk/include/llvm/CodeGen/MachineOperand.h llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h llvm/trunk/include/ll

[llvm-commits] [llvm] r45034 - in /llvm/trunk: include/llvm/ADT/StringMap.h include/llvm/ExecutionEngine/ExecutionEngine.h include/llvm/ExecutionEngine/GenericValue.h lib/Analysis/IPA/Andersens.cpp li

2007-12-14 Thread Dan Gohman
Author: djg Date: Fri Dec 14 09:41:34 2007 New Revision: 45034 URL: http://llvm.org/viewvc/llvm-project?rev=45034&view=rev Log: Add explicit keywords, and fix a minor typo that they uncovered. Modified: llvm/trunk/include/llvm/ADT/StringMap.h llvm/trunk/include/llvm/ExecutionEngine/Execut

[llvm-commits] [llvm] r45033 - /llvm/trunk/test/Assembler/2007-12-11-AddressSpaces.ll

2007-12-14 Thread Dan Gohman
Author: djg Date: Fri Dec 14 09:15:11 2007 New Revision: 45033 URL: http://llvm.org/viewvc/llvm-project?rev=45033&view=rev Log: Don't redirect stderr when it isn't needed. Modified: llvm/trunk/test/Assembler/2007-12-11-AddressSpaces.ll Modified: llvm/trunk/test/Assembler/2007-12-11-AddressSp

[llvm-commits] [llvm] r45032 - /llvm/trunk/include/llvm/Target/MRegisterInfo.h

2007-12-14 Thread Dan Gohman
Author: djg Date: Fri Dec 14 09:13:08 2007 New Revision: 45032 URL: http://llvm.org/viewvc/llvm-project?rev=45032&view=rev Log: Fix a typo in a comment. Modified: llvm/trunk/include/llvm/Target/MRegisterInfo.h Modified: llvm/trunk/include/llvm/Target/MRegisterInfo.h URL: http://llvm.org/vie

[llvm-commits] [llvm] r45031 - /llvm/trunk/include/llvm/Support/Allocator.h

2007-12-14 Thread Dan Gohman
Author: djg Date: Fri Dec 14 09:11:58 2007 New Revision: 45031 URL: http://llvm.org/viewvc/llvm-project?rev=45031&view=rev Log: Fix a typo in a comment. Modified: llvm/trunk/include/llvm/Support/Allocator.h Modified: llvm/trunk/include/llvm/Support/Allocator.h URL: http://llvm.org/viewvc/ll

[llvm-commits] [llvm] r45030 - in /llvm/trunk/lib/Target/X86: X86InstrInfo.td X86InstrX86-64.td

2007-12-14 Thread Dan Gohman
Author: djg Date: Fri Dec 14 09:10:00 2007 New Revision: 45030 URL: http://llvm.org/viewvc/llvm-project?rev=45030&view=rev Log: Fix Intel asm syntax for the bsr and bsf instructions. Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td llvm/trunk/lib/Target/X86/X86InstrX86-64.td Modified:

[llvm-commits] [llvm] r45013 - /llvm/trunk/docs/CodeGenerator.html

2007-12-13 Thread Dan Gohman
Author: djg Date: Thu Dec 13 14:43:47 2007 New Revision: 45013 URL: http://llvm.org/viewvc/llvm-project?rev=45013&view=rev Log: Make it more clear that some things that can't be done in .td files can still be done in the LLVM code generator. And update the summary for the X86 target. Modified:

Re: [llvm-commits] [llvm] r44954 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAG.cpp lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/vec_ctbits.ll

2007-12-13 Thread Dan Gohman
way this works though; I'll fix that shortly. Also, in C, one could vectorize a[i] << b[i], though LLVM doesn't currently support that. The legalizer expands these by running SplitVectorOp and ScalarizeVectorOp as necessary, just as with other operations. Dan -- Dan G

[llvm-commits] [llvm] r44955 - /llvm/trunk/include/llvm/Target/TargetInstrInfo.h

2007-12-12 Thread Dan Gohman
Author: djg Date: Wed Dec 12 16:25:09 2007 New Revision: 44955 URL: http://llvm.org/viewvc/llvm-project?rev=44955&view=rev Log: Remove a forward-declaration for a non-existant class. Modified: llvm/trunk/include/llvm/Target/TargetInstrInfo.h Modified: llvm/trunk/include/llvm/Target/TargetIns

[llvm-commits] [llvm] r44954 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAG.cpp lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/vec_ctbits.ll

2007-12-12 Thread Dan Gohman
Author: djg Date: Wed Dec 12 16:21:26 2007 New Revision: 44954 URL: http://llvm.org/viewvc/llvm-project?rev=44954&view=rev Log: Allow vector integer constants to be created with SelectionDAG::getConstant, in the same way as vector floating-point constants. This allows the legalize expansion code f

[llvm-commits] [llvm] r44867 - in /llvm/trunk/test: C++Frontend/2007-10-01-StructResize.cpp C++Frontend/2007-10-01-StructResize.ll FrontendObjC/2007-10-18-ProDescriptor.ll FrontendObjC/2007-10-18-ProD

2007-12-11 Thread Dan Gohman
Author: djg Date: Tue Dec 11 09:55:52 2007 New Revision: 44867 URL: http://llvm.org/viewvc/llvm-project?rev=44867&view=rev Log: Rename these tests to use the appropriate suffixes. Added: llvm/trunk/test/C++Frontend/2007-10-01-StructResize.cpp - copied unchanged from r44792, llvm/trunk/

[llvm-commits] [llvm] r44866 - in /llvm/trunk/test: Assembler/2004-11-28-InvalidTypeCrash.ll Assembler/2005-01-31-CallingAggregateFunction.ll CFrontend/2006-09-25-DebugFilename.c Feature/globalredefin

2007-12-11 Thread Dan Gohman
Author: djg Date: Tue Dec 11 09:50:23 2007 New Revision: 44866 URL: http://llvm.org/viewvc/llvm-project?rev=44866&view=rev Log: Use not instead of ignore when an exit status is expected to always be non-zero. Modified: llvm/trunk/test/Assembler/2004-11-28-InvalidTypeCrash.ll llvm/trunk/te

[llvm-commits] [llvm] r44865 - in /llvm/trunk/test/Assembler: 2007-04-20-AlignedLoad.ll 2007-04-20-AlignedStore.ll

2007-12-11 Thread Dan Gohman
Author: djg Date: Tue Dec 11 09:41:11 2007 New Revision: 44865 URL: http://llvm.org/viewvc/llvm-project?rev=44865&view=rev Log: Don't redirect stderr when it isn't needed. Modified: llvm/trunk/test/Assembler/2007-04-20-AlignedLoad.ll llvm/trunk/test/Assembler/2007-04-20-AlignedStore.ll 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-10 Thread Dan Gohman
er loops, the pass could just traverse entire outer-most loops, which will implicitly include the blocks of any inner loops. Instructions nested deep in inner loops can then be hoisted all the way out of the outer-most loop in a single step instead of being hoisted out

[llvm-commits] [llvm] r44345 - in /llvm/trunk/test/Verifier: invoke-1.ll invoke-2.ll

2007-11-26 Thread Dan Gohman
Author: djg Date: Mon Nov 26 18:50:57 2007 New Revision: 44345 URL: http://llvm.org/viewvc/llvm-project?rev=44345&view=rev Log: Change &| to |&. Modified: llvm/trunk/test/Verifier/invoke-1.ll llvm/trunk/test/Verifier/invoke-2.ll Modified: llvm/trunk/test/Verifier/invoke-1.ll URL: http:/

[llvm-commits] [llvm] r44344 - in /llvm/trunk/test/Analysis/ScalarEvolution: 2007-07-15-NegativeStride.ll 2007-09-27-LargeStepping.ll 2007-11-18-OrInstruction.ll

2007-11-26 Thread Dan Gohman
Author: djg Date: Mon Nov 26 18:10:35 2007 New Revision: 44344 URL: http://llvm.org/viewvc/llvm-project?rev=44344&view=rev Log: Change grep '' to grep {}. Change 2>&1 | to |&. Modified: llvm/trunk/test/Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll llvm/trunk/test/Analysis/ScalarEv

[llvm-commits] [llvm] r44343 - /llvm/trunk/test/Assembler/2007-04-20-AlignedLoad.ll

2007-11-26 Thread Dan Gohman
Author: djg Date: Mon Nov 26 18:07:33 2007 New Revision: 44343 URL: http://llvm.org/viewvc/llvm-project?rev=44343&view=rev Log: Don't redirect llvm-as's stderr to llvm-dis. Change grep '' to grep {}. Modified: llvm/trunk/test/Assembler/2007-04-20-AlignedLoad.ll Modified: llvm/trunk/test/Asse

[llvm-commits] [llvm] r44342 - /llvm/trunk/test/CodeGen/X86/2007-07-03-GR64ToVR64.ll

2007-11-26 Thread Dan Gohman
Author: djg Date: Mon Nov 26 18:03:38 2007 New Revision: 44342 URL: http://llvm.org/viewvc/llvm-project?rev=44342&view=rev Log: Remove unnecessary && from the RUN lines of this test. Modified: llvm/trunk/test/CodeGen/X86/2007-07-03-GR64ToVR64.ll Modified: llvm/trunk/test/CodeGen/X86/2007-07-

[llvm-commits] [llvm] r44341 - in /llvm/trunk: lib/CodeGen/SelectionDAG/DAGCombiner.cpp test/CodeGen/X86/urem-i8-constant.ll

2007-11-26 Thread Dan Gohman
Author: djg Date: Mon Nov 26 17:46:11 2007 New Revision: 44341 URL: http://llvm.org/viewvc/llvm-project?rev=44341&view=rev Log: Don't lower srem/urem X%C to X-X/C*C unless the division is actually optimized. This avoids creating illegal divisions when the combiner is running after legalize; this f

[llvm-commits] [llvm] r44240 - in /llvm/trunk: include/llvm/Analysis/Dominators.h include/llvm/BasicBlock.h include/llvm/Target/TargetMachine.h lib/Target/PowerPC/PPCTargetMachine.cpp lib/Target/Power

2007-11-19 Thread Dan Gohman
Author: djg Date: Mon Nov 19 14:46:23 2007 New Revision: 44240 URL: http://llvm.org/viewvc/llvm-project?rev=44240&view=rev Log: Remove meaningless qualifiers from return types, avoiding compiler warnings. Modified: llvm/trunk/include/llvm/Analysis/Dominators.h llvm/trunk/include/llvm/Basi

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

2007-11-19 Thread Dan Gohman
Author: djg Date: Mon Nov 19 09:36:19 2007 New Revision: 44235 URL: http://llvm.org/viewvc/llvm-project?rev=44235&view=rev Log: Fix a typo in a comment. Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h URL: http://ll

[llvm-commits] [llvm] r44234 - in /llvm/trunk: include/llvm/ADT/StringMap.h include/llvm/Analysis/ScalarEvolutionExpressions.h include/llvm/Bitcode/Serialize.h lib/Bitcode/Reader/BitcodeReader.cpp lib

2007-11-19 Thread Dan Gohman
Author: djg Date: Mon Nov 19 09:30:20 2007 New Revision: 44234 URL: http://llvm.org/viewvc/llvm-project?rev=44234&view=rev Log: Add explicit keywords. Modified: llvm/trunk/include/llvm/ADT/StringMap.h llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpressions.h llvm/trunk/include/llv

[llvm-commits] [llvm] r44233 - in /llvm/trunk: lib/CodeGen/SelectionDAG/LegalizeDAG.cpp test/CodeGen/X86/split-vector-rem.ll

2007-11-19 Thread Dan Gohman
Author: djg Date: Mon Nov 19 09:15:03 2007 New Revision: 44233 URL: http://llvm.org/viewvc/llvm-project?rev=44233&view=rev Log: Add support in SplitVectorOp for remainder operators. Added: llvm/trunk/test/CodeGen/X86/split-vector-rem.ll Modified: llvm/trunk/lib/CodeGen/SelectionDAG/Legali

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

2007-11-06 Thread Dan Gohman
Author: djg Date: Tue Nov 6 16:11:54 2007 New Revision: 43781 URL: http://llvm.org/viewvc/llvm-project?rev=43781&view=rev Log: Remainder operations must be either integer or floating-point. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Modified: llvm/trunk/lib/CodeGen/Select

[llvm-commits] [llvm] r43744 - in /llvm/trunk: docs/LangRef.html lib/AsmParser/llvmAsmParser.y lib/CodeGen/SelectionDAG/LegalizeDAG.cpp test/CodeGen/X86/vector-rem.ll

2007-11-05 Thread Dan Gohman
Author: djg Date: Mon Nov 5 17:35:22 2007 New Revision: 43744 URL: http://llvm.org/viewvc/llvm-project?rev=43744&view=rev Log: Add support for vector remainder operations. Added: llvm/trunk/test/CodeGen/X86/vector-rem.ll Modified: llvm/trunk/docs/LangRef.html llvm/trunk/lib/AsmParser

[llvm-commits] [llvm] r43743 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/vector-srem.ll

2007-11-05 Thread Dan Gohman
Author: djg Date: Mon Nov 5 17:16:33 2007 New Revision: 43743 URL: http://llvm.org/viewvc/llvm-project?rev=43743&view=rev Log: Fix an abort in instcombine when folding creates a vector rem instruction. Added: llvm/trunk/test/Transforms/InstCombine/vector-srem.ll Modified: llvm/trunk/lib/

Re: [llvm-commits] [llvm] r43667 - /llvm/trunk/docs/tutorial/LangImpl7.html

2007-11-05 Thread Dan Gohman
> +mem2reg only works on allocas of scalar values, and only if the array > size mem2reg has been observed working on allocas of vector values too :-). Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.ed

[llvm-commits] [llvm] r43652 - in /llvm/trunk/lib: CodeGen/SelectionDAG/SelectionDAGISel.cpp Transforms/Utils/LowerSwitch.cpp

2007-11-02 Thread Dan Gohman
Author: djg Date: Fri Nov 2 17:24:01 2007 New Revision: 43652 URL: http://llvm.org/viewvc/llvm-project?rev=43652&view=rev Log: Add std:: to sort calls. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp llvm/trunk/lib/Transforms/Utils/LowerSwitch.cpp Modified: llvm/trunk

[llvm-commits] [llvm] r43651 - in /llvm/trunk/lib: CodeGen/SelectionDAG/SelectionDAGISel.cpp Transforms/Utils/LowerSwitch.cpp

2007-11-02 Thread Dan Gohman
Author: djg Date: Fri Nov 2 17:22:02 2007 New Revision: 43651 URL: http://llvm.org/viewvc/llvm-project?rev=43651&view=rev Log: Change illegal uses of ++ to uses of STLExtra.h's next function. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp llvm/trunk/lib/Transforms/Uti

[llvm-commits] [llvm] r43579 - /llvm/trunk/lib/VMCore/ConstantFold.cpp

2007-10-31 Thread Dan Gohman
Author: djg Date: Wed Oct 31 16:36:31 2007 New Revision: 43579 URL: http://llvm.org/viewvc/llvm-project?rev=43579&view=rev Log: Fix a regression in test/CodeGen/X86/2007-04-24-VectorCrash.ll introduced by r43510. Gracefully handle constants with vector type that aren't ConstantVector or ConstantAg

[llvm-commits] [llvm] r43553 - /llvm/trunk/lib/Transforms/Scalar/LICM.cpp

2007-10-31 Thread Dan Gohman
Author: djg Date: Wed Oct 31 09:35:39 2007 New Revision: 43553 URL: http://llvm.org/viewvc/llvm-project?rev=43553&view=rev Log: Fix a typo in a comment. Modified: llvm/trunk/lib/Transforms/Scalar/LICM.cpp Modified: llvm/trunk/lib/Transforms/Scalar/LICM.cpp URL: http://llvm.org/viewvc/llvm-p

[llvm-commits] [llvm] r43510 - in /llvm/trunk: lib/VMCore/ConstantFold.cpp test/Transforms/InstCombine/fold-vector-zero.ll

2007-10-30 Thread Dan Gohman
Author: djg Date: Tue Oct 30 14:00:49 2007 New Revision: 43510 URL: http://llvm.org/viewvc/llvm-project?rev=43510&view=rev Log: Add support for folding binary operators with vector zero operands. Added: llvm/trunk/test/Transforms/InstCombine/fold-vector-zero.ll Modified: llvm/trunk/lib/VM

[llvm-commits] [llvm] r43470 - in /llvm/trunk: lib/CodeGen/SelectionDAG/DAGCombiner.cpp test/CodeGen/X86/bitcast-int-to-vector.ll

2007-10-29 Thread Dan Gohman
Author: djg Date: Mon Oct 29 15:44:42 2007 New Revision: 43470 URL: http://llvm.org/viewvc/llvm-project?rev=43470&view=rev Log: Fix a DAGCombiner abort on a bitcast from a scalar to a vector. Added: llvm/trunk/test/CodeGen/X86/bitcast-int-to-vector.ll Modified: llvm/trunk/lib/CodeGen/Sele

[llvm-commits] [llvm] r43468 - /llvm/trunk/lib/Transforms/Scalar/LowerPacked.cpp

2007-10-29 Thread Dan Gohman
Author: djg Date: Mon Oct 29 15:34:35 2007 New Revision: 43468 URL: http://llvm.org/viewvc/llvm-project?rev=43468&view=rev Log: Don't bitcast from pointer-to-vector to pointer-to-array when lowering load and store instructions. Modified: llvm/trunk/lib/Transforms/Scalar/LowerPacked.cpp Modif

[llvm-commits] [llvm] r43467 - /llvm/trunk/lib/Transforms/Scalar/LowerPacked.cpp

2007-10-29 Thread Dan Gohman
Author: djg Date: Mon Oct 29 15:24:00 2007 New Revision: 43467 URL: http://llvm.org/viewvc/llvm-project?rev=43467&view=rev Log: Use an array instead of a fixed-length std::vector. Modified: llvm/trunk/lib/Transforms/Scalar/LowerPacked.cpp Modified: llvm/trunk/lib/Transforms/Scalar/LowerPacke

[llvm-commits] [llvm] r43466 - /llvm/trunk/lib/Transforms/Scalar/LowerPacked.cpp

2007-10-29 Thread Dan Gohman
Author: djg Date: Mon Oct 29 15:14:29 2007 New Revision: 43466 URL: http://llvm.org/viewvc/llvm-project?rev=43466&view=rev Log: Do a real assert if there is an unhandled vector instruction instead of just printing to cerr. Modified: llvm/trunk/lib/Transforms/Scalar/LowerPacked.cpp Modified:

[llvm-commits] [llvm] r43464 - in /llvm/trunk: include/llvm/Analysis/AliasSetTracker.h lib/Analysis/ValueNumbering.cpp lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp

2007-10-29 Thread Dan Gohman
Author: djg Date: Mon Oct 29 14:52:04 2007 New Revision: 43464 URL: http://llvm.org/viewvc/llvm-project?rev=43464&view=rev Log: Add explicit keywords. Modified: llvm/trunk/include/llvm/Analysis/AliasSetTracker.h llvm/trunk/lib/Analysis/ValueNumbering.cpp llvm/trunk/lib/CodeGen/Selecti

[llvm-commits] [llvm] r43463 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

2007-10-29 Thread Dan Gohman
Author: djg Date: Mon Oct 29 14:32:39 2007 New Revision: 43463 URL: http://llvm.org/viewvc/llvm-project?rev=43463&view=rev Log: Update a comment to reflect the current code. Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Modified: llvm/trunk/lib/Transforms/Scalar/LoopStren

  1   2   3   4   5   >