- Jun 25, 2008
-
-
Mon P Wang authored
Added abstract class MemSDNode for any Node that have an associated MemOperand Changed atomic.lcs => atomic.cmp.swap, atomic.las => atomic.load.add, and atomic.lss => atomic.load.sub llvm-svn: 52706
-
Evan Cheng authored
llvm-svn: 52701
-
Dale Johannesen authored
load,store,call,return,bitcast. This is enough to make call and return work. llvm-svn: 52691
-
- Jun 24, 2008
-
-
Evan Cheng authored
If it's determined safe, remat MOV32r0 (i.e. xor r, r) and others as it is instead of using the longer MOV32ri instruction. llvm-svn: 52670
-
Dan Gohman authored
llvm-svn: 52663
-
Dan Gohman authored
general solution possible, but it's a fairly simple one. Based on a patch from the OpenGTL project! llvm-svn: 52662
-
- Jun 22, 2008
-
-
Dan Gohman authored
llvm-svn: 52613
-
- Jun 21, 2008
-
-
Dan Gohman authored
llvm-svn: 52594
-
- Jun 19, 2008
-
-
Eli Friedman authored
shuffle could be skipped. The check is invalid because the loop index i doesn't correspond to the element actually inserted. The correct check is already done a few lines earlier, for whether the element is already in the right spot, so this shouldn't have any effect on the codegen for code that was already correct. llvm-svn: 52486
-
Evan Cheng authored
llvm-svn: 52478
-
- Jun 18, 2008
-
-
Evan Cheng authored
llvm-svn: 52454
-
Evan Cheng authored
llvm-svn: 52439
-
- Jun 17, 2008
-
-
Anton Korobeynikov authored
llvm-svn: 52420
-
Anton Korobeynikov authored
llvm-svn: 52419
-
Anton Korobeynikov authored
Patch by Gary Benson! llvm-svn: 52418
-
Evan Cheng authored
Rather than avoiding to wrap ISD::DECLARE GV operand in X86ISD::Wrapper, simply handle it at dagisel time with x86 specific isel code. llvm-svn: 52377
-
- Jun 16, 2008
-
-
Evan Cheng authored
llvm-svn: 52363
-
Evan Cheng authored
llvm-svn: 52352
-
Chris Lattner authored
Patch by Gary Benson! llvm-svn: 52332
-
Evan Cheng authored
llvm-svn: 52308
-
Chris Lattner authored
them based on the end-compiler's capabilities. This fixes PR2453 llvm-svn: 52297
-
- Jun 14, 2008
-
-
Andrew Lenharth authored
llvm-svn: 52270
-
- Jun 13, 2008
-
-
Duncan Sands authored
wrong for volatile loads and stores. In fact this is almost all of them! There are three types of problems: (1) it is wrong to change the width of a volatile memory access. These may be used to do memory mapped i/o, in which case a load can have an effect even if the result is not used. Consider loading an i32 but only using the lower 8 bits. It is wrong to change this into a load of an i8, because you are no longer tickling the other three bytes. It is also unwise to make a load/store wider. For example, changing an i16 load into an i32 load is wrong no matter how aligned things are, since the fact of loading an additional 2 bytes can have i/o side-effects. (2) it is wrong to change the number of volatile load/stores: they may be counted by the hardware. (3) it is wrong to change a volatile load/store that requires one memory access into one that requires several. For example on x86-32, you can store a double in one processor operation, but to store an i64 requires two (two i32 stores). In a multi-threaded program you may want to bitcast an i64 to a double and store as a double because that will occur atomically, and be indivisible to other threads. So it would be wrong to convert the store-of-double into a store of an i64, because this will become two i32 stores - no longer atomic. My policy here is to say that the number of processor operations for an illegal operation is undefined. So it is alright to change a store of an i64 (requires at least two stores; but could be validly lowered to memcpy for example) into a store of double (one processor op). In short, if the new store is legal and has the same size then I say that the transform is ok. It would also be possible to say that transforms are always ok if before they were illegal, whether after they are illegal or not, but that's more awkward to do and I doubt it buys us anything much. However this exposed an interesting thing - on x86-32 a store of i64 is considered legal! That is because operations are marked legal by default, regardless of whether the type is legal or not. In some ways this is clever: before type legalization this means that operations on illegal types are considered legal; after type legalization there are no illegal types so now operations are only legal if they really are. But I consider this to be too cunning for mere mortals. Better to do things explicitly by testing AfterLegalize. So I have changed things so that operations with illegal types are considered illegal - indeed they can never map to a machine operation. However this means that the DAG combiner is more conservative because before it was "accidentally" performing transforms where the type was illegal because the operation was nonetheless marked legal. So in a few such places I added a check on AfterLegalize, which I suppose was actually just forgotten before. This causes the DAG combiner to do slightly more than it used to, which resulted in the X86 backend blowing up because it got a slightly surprising node it wasn't expecting, so I tweaked it. llvm-svn: 52254
-
- Jun 11, 2008
-
-
Anton Korobeynikov authored
CALLSEQ_BEGIN & CALLSEQ_END. llvm-svn: 52225
-
- Jun 09, 2008
-
-
Dan Gohman authored
llvm-svn: 52147
-
Dan Gohman authored
llvm-svn: 52146
-
Dan Gohman authored
llvm-svn: 52144
-
Rafael Espindola authored
llvm-svn: 52139
-
- Jun 08, 2008
-
-
Duncan Sands authored
of apint codegen failure is the DAG combiner doing the wrong thing because it was comparing MVT's using < rather than comparing the number of bits. Removing the < method makes this mistake impossible to commit. Instead, add helper methods for comparing bits and use them. llvm-svn: 52098
-
Bruno Cardoso Lopes authored
llvm-svn: 52086
-
Bill Wendling authored
llvm-svn: 52085
-
- Jun 07, 2008
-
-
Bruno Cardoso Lopes authored
llvm-svn: 52079
-
Evan Cheng authored
llvm-svn: 52071
-
- Jun 06, 2008
-
-
Evan Cheng authored
llvm-svn: 52062
-
Evan Cheng authored
llvm-svn: 52056
-
Anton Korobeynikov authored
llvm-svn: 52046
-
Duncan Sands authored
and better control the abstraction. Rename the type to MVT. To update out-of-tree patches, the main thing to do is to rename MVT::ValueType to MVT, and rewrite expressions like MVT::getSizeInBits(VT) in the form VT.getSizeInBits(). Use VT.getSimpleVT() to extract a MVT::SimpleValueType for use in switch statements (you will get an assert failure if VT is an extended value type - these shouldn't exist after type legalization). This results in a small speedup of codegen and no new testsuite failures (x86-64 linux). llvm-svn: 52044
-
Bruno Cardoso Lopes authored
MUL is not anymore directly matched because its a pseudoinstruction. LogicI class fixed to zero-extend immediates. llvm-svn: 52036
-
Bruno Cardoso Lopes authored
Added special isel for ADDE,SUBE and new patterns to match SUBC,ADDC llvm-svn: 52031
-
Evan Cheng authored
llvm-svn: 52026
-