summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Fix PR4076. Correctly create live interval of physical register with ↵Evan Cheng2009-04-272-10/+185
| | | | | | two-address update. llvm-svn: 70245
* Permit ChangeCompareStride to rewrite a comparison when the factorDan Gohman2009-04-273-1/+166
| | | | | | | between the comparison's iv stride and the candidate stride is exactly -1. llvm-svn: 70244
* Add tests for WeakVH and AssertingVH. These pointed out that the overloads forJeffrey Yasskin2009-04-272-42/+183
| | | | | | | the comparison operators were not only unnecessary in the presence of the implicit conversion; they caused ambiguous overload errors. So I deleted them. llvm-svn: 70243
* Teach getZeroExtendExpr and getSignExtendExpr to use trip-countDan Gohman2009-04-274-13/+769
| | | | | | | | | | | | | | | | | information to simplify [sz]ext({a,+,b}) to {zext(a),+,[zs]ext(b)}, as appropriate. These functions and the trip count code each call into the other, so this requires careful handling to avoid infinite recursion. During the initial trip count computation, conservative SCEVs are used, which are subsequently discarded once the trip count is actually known. Among other benefits, this change lets LSR automatically eliminate some unnecessary zext-inreg and sext-inreg operation where the operand is an induction variable. llvm-svn: 70241
* give bitstreamreader an API to ignore names for blocks/records,Chris Lattner2009-04-272-1/+17
| | | | | | only llvm-bcanalyzer wants this info. llvm-svn: 70239
* Don't skip the CopyMI when removing kill markers.Owen Anderson2009-04-271-2/+0
| | | | | | | This should have no effect on generated code, but makes the intermediate state of the coalescer more sane. llvm-svn: 70238
* Now that PR2957 is resolved, remove a bunch ofDuncan Sands2009-04-274-90/+4
| | | | | | no-longer needed workarounds. llvm-svn: 70234
* Test for (llvm-gcc) 70231.Dale Johannesen2009-04-271-0/+44
| | | | llvm-svn: 70233
* Revert accidental testcase reductionNate Begeman2009-04-271-4/+40
| | | | llvm-svn: 70226
* 2nd attempt, fixing SSE4.1 issues and implementing feedback from duncan.Nate Begeman2009-04-2726-2208/+1646
| | | | | | | | | | | | | | PR2957 ISD::VECTOR_SHUFFLE now stores an array of integers representing the shuffle mask internal to the node, rather than taking a BUILD_VECTOR of ConstantSDNodes as the shuffle mask. A value of -1 represents UNDEF. In addition to eliminating the creation of illegal BUILD_VECTORS just to represent shuffle masks, we are better about canonicalizing the shuffle mask, resulting in substantially better code for some classes of shuffles. llvm-svn: 70225
* Print statistics for each record kind saying the number of bitsChris Lattner2009-04-271-3/+24
| | | | | | | | | | | | | | | and % abbreviated. For example: Record Histogram: Count # Bits % Abv Record Kind 25738 3424174 100.00 SM_SLOC_INSTANTIATION_ENTRY 814 562079 100.00 SM_SLOC_FILE_ENTRY 798 34110 SM_HEADER_FILE_INFO 3 91104 100.00 SM_SLOC_BUFFER_BLOB 3 498 100.00 SM_SLOC_BUFFER_ENTRY 1 465 SM_LINE_TABLE llvm-svn: 70215
* clean up the output of llvm-bcanalyzer by using printfChris Lattner2009-04-271-8/+17
| | | | | | instead of ostreams for formatting. llvm-svn: 70214
* Fix PR4056. It's possible a physical register def is dead if its implicit ↵Evan Cheng2009-04-272-2/+26
| | | | | | use is deleted by two-address pass. llvm-svn: 70213
* Also delete last unused val#.Evan Cheng2009-04-271-0/+6
| | | | llvm-svn: 70212
* Rename GR8_ABCD to GR8_ABCD_L and create GR8_ABCD_H, and use theseDan Gohman2009-04-273-32/+71
| | | | | | | | | | | to precisely describe the h-register subreg register classes. Thanks to Jakob Stoklund Olesen for spotting this and for the initial patch! Also, make getStoreRegOpcode and getLoadRegOpcode aware of the needs of h registers. llvm-svn: 70211
* Rename GR8_, GR16_, GR32_, and GR64_ to GR8_ABCD, GR16_ABCD,Dan Gohman2009-04-275-42/+42
| | | | | | GR32_ABCD, and GR64_ABCD, respectively, to help describe them. llvm-svn: 70210
* Break up long multi-mnemonic strings into separate lines for readability.Dan Gohman2009-04-272-12/+27
| | | | llvm-svn: 70209
* Fix the syntax for a PR number in a test.Dan Gohman2009-04-271-1/+1
| | | | llvm-svn: 70208
* Fix some confusion in the Ada f-e build instructions betweenDuncan Sands2009-04-271-7/+11
| | | | | | building without optimization and building with checking. llvm-svn: 70205
* Revised 68749 to allow matching of load/stores for address spaces < 256.Mon P Wang2009-04-271-9/+9
| | | | llvm-svn: 70197
* Under unusual circumstances (jitting a function that causes the creation ofNick Lewycky2009-04-271-17/+23
| | | | | | | | | | | | another stub, but then never calling the jitted function) can cause the JIT to leave a stub in place. Judging by the comments this is a known deficiency, so we're just not going to use AssertingVH for the StubToFunctionTy map. Also shorten some lines longer than 80 columns. This fixes the "make check" failure with ocaml on x86-64 linux. llvm-svn: 70185
* Now that any size of integer indices are allowed for sequential types, ↵Sanjiv Gupta2009-04-271-3/+1
| | | | | | remove the unneccessary gyan about promoting them. llvm-svn: 70181
* Make this test slightly more strict.Dan Gohman2009-04-271-1/+1
| | | | llvm-svn: 70180
* When transforming sext(trunc(load(x))) into sext(smaller load(x)),Dan Gohman2009-04-272-1/+21
| | | | | | | the trunc is directly replaced with the smaller load, so don't try to create a new sext node. This fixes PR4050. llvm-svn: 70179
* Handle ands with ~0 correctly too. This fixes PR4052.Dan Gohman2009-04-272-0/+105
| | | | llvm-svn: 70176
* Improve bugpoint's error messages when it runs out of memory,Dan Gohman2009-04-271-0/+8
| | | | | | or when some other std::exception is thrown. llvm-svn: 70175
* Add two new record types to the blockinfo block:Chris Lattner2009-04-264-14/+79
| | | | | | | | | BLOCKNAME and SETRECORDNAME. This allows a bitcode file to be self describing with pretty names for records and blocks in addition to numbers. This enhances llvm-bcanalyzer to use this to print prettily. llvm-svn: 70165
* make BitstreamCursor's copyable and assignable.Chris Lattner2009-04-261-2/+38
| | | | llvm-svn: 70159
* Make a major API change to BitstreamReader: split all the readingChris Lattner2009-04-266-116/+149
| | | | | | | | | state out of the BitstreamReader class into a BitstreamCursor class. Doing this allows the client to have multiple cursors into the same file, each with potentially different live block stacks and abbreviation records. llvm-svn: 70157
* I cast, therefore I think I know what I'm doing.Bill Wendling2009-04-261-4/+4
| | | | llvm-svn: 70151
* Use uint64_t instead of unsigned.Bill Wendling2009-04-261-4/+6
| | | | llvm-svn: 70148
* revert an incorrect patch. This causes crashes all over the place on aChris Lattner2009-04-261-6/+4
| | | | | | 64-bit build. llvm-svn: 70147
* Suppress warnings about conversion shortening 64-bit to 32-bit.Bill Wendling2009-04-261-4/+6
| | | | llvm-svn: 70138
* Any size of integral indices are allowed in gep for indexing into sequential ↵Sanjiv Gupta2009-04-263-4/+15
| | | | | | types. Also adding a test case to check the indices type allowed into struct. llvm-svn: 70134
* improve documentation on build configurations, patch byChris Lattner2009-04-251-8/+19
| | | | | | Josef Eisl! llvm-svn: 70087
* add testcase for strange types of gep indicesChris Lattner2009-04-251-0/+12
| | | | llvm-svn: 70085
* Add a new TypeBuilder helper class, which eases making LLVM IR types.Chris Lattner2009-04-252-0/+696
| | | | | | Patch by Jeffrey Yasskin! llvm-svn: 70084
* improve documentation around memory lifetimes, Chris Lattner2009-04-251-5/+17
| | | | | | patch by Jeffrey Yasskin! llvm-svn: 70083
* aDd support for building a subset of the llvm tools, patch by Jeffrey Yasskin!Chris Lattner2009-04-253-3/+11
| | | | llvm-svn: 70082
* testcase and asmparser fix for PR4066Chris Lattner2009-04-252-2/+13
| | | | llvm-svn: 70080
* Allow aliasee to be a GEP or bitcast instead of just a bitcast.Chris Lattner2009-04-252-7/+9
| | | | | | | | | | | The real fix for this whole mess is to require the operand of the alias to be a *GlobalValue* (not a general constant, including constant exprs) but allow the operand and the alias type to be unrelated. This fixes PR4066 llvm-svn: 70079
* Update docs to not mention gcse/loadvn and mention memdep andChris Lattner2009-04-251-24/+12
| | | | | | new stuff. PR3924. llvm-svn: 70077
* Use intptr_t.Bill Wendling2009-04-251-1/+1
| | | | llvm-svn: 70076
* size() should return a size_t; avoids a warning for 64 bit machines.Mon P Wang2009-04-251-1/+1
| | | | llvm-svn: 70072
* Reuse unused val#'s to avoid running out of memory in extreme cases.Evan Cheng2009-04-251-1/+5
| | | | llvm-svn: 70069
* DenseMap.h needs <new> because it explicitly calls operator new/delete.Chris Lattner2009-04-251-0/+1
| | | | | | Patch by John McCall! llvm-svn: 70068
* Fix PR4040: APInt's string constructor is too strictChris Lattner2009-04-252-7/+18
| | | | | | patch by Jeff Yasskin! llvm-svn: 70058
* add support for detecting process features on win64, patch byChris Lattner2009-04-251-36/+50
| | | | | | Nicolas Capens! llvm-svn: 70057
* Refactor the code to grab the low and high parts of a valueDan Gohman2009-04-254-126/+38
| | | | | | using EXTRACT_ELEMENT into a utility function. llvm-svn: 70056
* Return null instead of false, as appropriate.Dan Gohman2009-04-251-3/+3
| | | | llvm-svn: 70054
OpenPOWER on IntegriCloud