summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Add -march=x86.Evan Cheng2008-11-271-1/+1
| | | | llvm-svn: 60135
* Add typedef to StringMapEntry.Ted Kremenek2008-11-271-2/+4
| | | | llvm-svn: 60134
* Disallow multiple edges.Mikhail Glushenkov2008-11-263-5/+26
| | | | llvm-svn: 60127
* Add x86-specific test for add-with-overflow intrinsics.Bill Wendling2008-11-261-0/+41
| | | | llvm-svn: 60125
* Generate something sensible for an [SU]ADDO op when the overflow/carry flag isBill Wendling2008-11-264-6/+40
| | | | | | | | | | | | | | | the conditional for the BRCOND statement. For instance, it will generate: addl %eax, %ecx jo LOF instead of addl %eax, %ecx ; About 10 instructions to compare the signs of LHS, RHS, and sum. jl LOF llvm-svn: 60123
* Turn on my codegen prepare heuristic by default. It doesn't affect Chris Lattner2008-11-262-7/+3
| | | | | | | | | | performance in most cases on the Grawp tester, but does speed some things up (like shootout/hash by 15%). This also doesn't impact compile time in a noticable way on the Grawp tester. It also, of course, gets the testcase it was designed for right :) llvm-svn: 60120
* Small formatting change.Bill Wendling2008-11-261-4/+4
| | | | llvm-svn: 60113
* Update to explain how ssp and sspreq attributes override each other.Bill Wendling2008-11-261-5/+14
| | | | llvm-svn: 60112
* Fix typo.Devang Patel2008-11-261-1/+1
| | | | llvm-svn: 60111
* Cosmetic.Evan Cheng2008-11-261-2/+2
| | | | llvm-svn: 60110
* Check that running the DAG combiner between typeDuncan Sands2008-11-261-0/+1
| | | | | | and operation legalization does something useful. llvm-svn: 60108
* Describe some more options in the man page.Mikhail Glushenkov2008-11-261-8/+62
| | | | llvm-svn: 60105
* Allow custom lowering of ADDE/ADDC/SUBE/SUBC operations.Sanjiv Gupta2008-11-261-6/+36
| | | | llvm-svn: 60102
* Fix the -I option (llvmc -I dir1 -I dir2 didn't work).Mikhail Glushenkov2008-11-261-0/+2
| | | | llvm-svn: 60101
* Refactor Tools.td to remove repetition.Mikhail Glushenkov2008-11-261-68/+10
| | | | llvm-svn: 60100
* Small fix: the error message was incorrect in some cases.Mikhail Glushenkov2008-11-261-3/+3
| | | | llvm-svn: 60099
* Emit declaration for globals and externs.Sanjiv Gupta2008-11-265-38/+120
| | | | | | Custom lower AND, OR, XOR bitwise operations. llvm-svn: 60098
* Fish kill flag annotations in PUSH instructions.Dan Gohman2008-11-262-3/+5
| | | | llvm-svn: 60095
* LiveRanges are represented as half-open ranges. Fix the findLiveInMBBs codeDan Gohman2008-11-262-2/+2
| | | | | | | and the LiveInterval.h top-level comment and accordingly. This fixes blocks having spurious live-in registers in boundary cases. llvm-svn: 60092
* teach the new heuristic how to handle inline asm.Chris Lattner2008-11-261-7/+52
| | | | llvm-svn: 60088
* Disable -loop-index-split for now.Devang Patel2008-11-261-2/+2
| | | | llvm-svn: 60087
* Add 'tell' method to raw_fd_ostream that clients can use to query the ↵Ted Kremenek2008-11-262-1/+12
| | | | | | current location in the file the stream is writing to. llvm-svn: 60085
* Improve ValueAlreadyLiveAtInst with a cheap and dirty, but effectiveChris Lattner2008-11-261-12/+32
| | | | | | | | | | | | | | | heuristic: the value is already live at the new memory operation if it is used by some other instruction in the memop's block. This is cheap and simple to compute (moreso than full liveness). This improves the new heuristic even more. For example, it cuts two out of three new instructions out of 255.vortex:DbmFileInGrpHdr, which is one of the functions that the heuristic regressed. This overall eliminates another 40 instructions from 403.gcc and visibly reduces register pressure in 255.vortex (though this only actually ends up saving the 2 instructions from the whole program). llvm-svn: 60084
* __fastcall and __stdcall are mingw extensions to gcc for windows. Use theNick Lewycky2008-11-261-2/+2
| | | | | | __attribute__ notation which is supported on more platforms. llvm-svn: 60083
* Start rewroking a subpiece of the profitability heuristic to beChris Lattner2008-11-261-11/+56
| | | | | | | | | | phrased in terms of liveness instead of as a horrible hack. :) In pratice, this doesn't change the generated code for either 255.vortex or 403.gcc, but it could cause minor code changes in theory. This is framework for coming changes. llvm-svn: 60082
* Adjust indent.Zhongxing Xu2008-11-261-2/+2
| | | | llvm-svn: 60081
* add a long-overdue AllocaInst::isStaticAlloca method.Chris Lattner2008-11-262-0/+17
| | | | llvm-svn: 60080
* Add test for rdar://6394879.Bill Wendling2008-11-261-0/+17
| | | | llvm-svn: 60079
* add a comment, make save/restore logic more obvious.Chris Lattner2008-11-261-7/+7
| | | | llvm-svn: 60076
* This adds in some code (currently disabled unless you pass Chris Lattner2008-11-262-10/+218
| | | | | | | | | | | | | | | | | | | | | | | | | -enable-smarter-addr-folding to llc) that gives CGP a better cost model for when to sink computations into addressing modes. The basic observation is that sinking increases register pressure when part of the addr computation has to be available for other reasons, such as having a use that is a non-memory operation. In cases where it works, it can substantially reduce register pressure. This code is currently an overall win on 403.gcc and 255.vortex (the two things I've been looking at), but there are several things I want to do before enabling it by default: 1. This isn't doing any caching of results, so it is much slower than it could be. It currently slows down release-asserts llc by 1.7% on 176.gcc: 27.12s -> 27.60s. 2. This doesn't think about inline asm memory operands yet. 3. The cost model botches the case when the needed value is live across the computation for other reasons. I'll continue poking at this, and eventually turn it on as llcbeta. llvm-svn: 60074
* Revert r60042. IndVarSimplify should check if APFloat is PPCDoubleDouble ↵Evan Cheng2008-11-262-7/+3
| | | | | | first before trying to convert it to an integer. llvm-svn: 60072
* Teach CodeGenPrepare to look through Bitcast instructions when attempting toChris Lattner2008-11-263-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | optimize addressing modes. This allows us to optimize things like isel-sink2.ll into: movl 4(%esp), %eax cmpb $0, 4(%eax) jne LBB1_2 ## F LBB1_1: ## TB movl $4, %eax ret LBB1_2: ## F movzbl 7(%eax), %eax ret instead of: _test: movl 4(%esp), %eax cmpb $0, 4(%eax) leal 4(%eax), %eax jne LBB1_2 ## F LBB1_1: ## TB movl $4, %eax ret LBB1_2: ## F movzbl 3(%eax), %eax ret This shrinks (e.g.) 403.gcc from 1133510 to 1128345 lines of .s. Note that the 2008-10-16-SpillerBug.ll testcase is dubious at best, I doubt it is really testing what it thinks it is. llvm-svn: 60068
* fix an over-reduced test.Chris Lattner2008-11-261-7/+2
| | | | llvm-svn: 60067
* this doesn't need EHChris Lattner2008-11-261-1/+1
| | | | llvm-svn: 60066
* change AnnotationManager to use 'const char*' instead of std::string. this ↵Nuno Lopes2008-11-262-8/+7
| | | | | | fixes the leakage of those strings and avoids the creation of such strings in static cosntructors (should result in a little improvement of startup time) llvm-svn: 60064
* CMake: llvmc2 is now known as llvmc.Oscar Fuentes2008-11-252-2/+2
| | | | llvm-svn: 60052
* Add a man page for llvmc. Really basic for now, will be updated later.Mikhail Glushenkov2008-11-252-9/+82
| | | | llvm-svn: 60049
* Since the old llvmc was removed, rename llvmc2 to llvmc.Mikhail Glushenkov2008-11-2539-52/+55
| | | | llvm-svn: 60048
* Make -fsyntax-only, -include and -emit-llvm work for C++ and Objective-C/C++.Mikhail Glushenkov2008-11-251-1/+16
| | | | llvm-svn: 60047
* docs: Add author info + fix incorrect code example.Mikhail Glushenkov2008-11-252-5/+9
| | | | llvm-svn: 60046
* Small documentation update.Mikhail Glushenkov2008-11-252-6/+8
| | | | llvm-svn: 60045
* Document the plugin priority feature.Mikhail Glushenkov2008-11-251-12/+26
| | | | llvm-svn: 60044
* A simplification for checking whether the signs of the operands and sum ↵Bill Wendling2008-11-251-15/+14
| | | | | | differ. Thanks, Duncan. llvm-svn: 60043
* convertToSignExtendedInteger should return opInvalidOp instead of asserting ↵Evan Cheng2008-11-252-1/+18
| | | | | | if sematics of float does not allow arithmetics. llvm-svn: 60042
* Suppress warnings.Dan Gohman2008-11-251-7/+7
| | | | llvm-svn: 60041
* This method got renamed, thanks to Mattias Holm for pointing this out.Chris Lattner2008-11-251-1/+1
| | | | llvm-svn: 60039
* CellSPU:Scott Michel2008-11-252-28/+75
| | | | | | | | | (a) Remove conditionally removed code in SelectXAddr. Basically, hope for the best that the A-form and D-form address predicates catch everything before the code decides to emit a X-form address. (b) Expand vector store test cases to include the usual suspects. llvm-svn: 60034
* add info about how to run the tests with valgrindNuno Lopes2008-11-251-0/+9
| | | | llvm-svn: 60030
* Now with the correct type for the 0.Bill Wendling2008-11-251-1/+1
| | | | llvm-svn: 60016
* Get rid of unused variable.Bill Wendling2008-11-251-1/+0
| | | | llvm-svn: 60015
OpenPOWER on IntegriCloud