summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Hacker's Delight says, "Signed integer overflow of addition occurs if and onlyBill Wendling2008-11-251-4/+48
| | | | | | | if the operands have the same sign and the sum has sign opposite to that of the operands." llvm-svn: 60014
* Teach MatchScaledValue to handle Scales by 1 with MatchAddr (whichChris Lattner2008-11-251-5/+15
| | | | | | | | can recursively match things) and scales by 0 by ignoring them. This triggers once in 403.gcc, saving 1 (!!!!) instruction in the whole huge app. llvm-svn: 60013
* significantly refactor all the addressing mode matching logicChris Lattner2008-11-251-139/+138
| | | | | | | | into a new AddressingModeMatcher class. This makes it easier to reason about and reduces passing around of stuff, but has no functionality change. llvm-svn: 60012
* refactor all the constantexpr/instruction handling code out into a Chris Lattner2008-11-251-65/+68
| | | | | | new FindMaximalLegalAddressingModeForOperation helper method. llvm-svn: 60011
* another minor tweakChris Lattner2008-11-251-3/+2
| | | | llvm-svn: 60010
* minor cleanups no functionality change.Chris Lattner2008-11-251-32/+31
| | | | llvm-svn: 60009
* CMake: Documented two cmake variables.Oscar Fuentes2008-11-251-0/+6
| | | | llvm-svn: 60008
* CellSPU: Relax constraints on when to generate a X-form address, evidentlyScott Michel2008-11-251-0/+7
| | | | | | | | they were too tight according to bug 3126. Fix bug 3126. llvm-svn: 60006
* CellSPU: test should use shlqby, not shlqbyiScott Michel2008-11-251-2/+1
| | | | llvm-svn: 60001
* XFAIL this test. A recent CellSPU check-in broke it.Bill Wendling2008-11-251-0/+1
| | | | llvm-svn: 60000
* Initial support for anti-dependence breaking. Currently this code does notDan Gohman2008-11-255-263/+751
| | | | | | | | | introduce any new spilling; it just uses unused registers. Refactor the SUnit topological sort code out of the RRList scheduler and make use of it to help with the post-pass scheduler. llvm-svn: 59999
* CellSPU: Fix mnemonic typo in pattern; "shlqbyi" -> "shlqby".Scott Michel2008-11-252-1/+3
| | | | llvm-svn: 59998
* Testcase for constant CFStrings.Bill Wendling2008-11-241-0/+11
| | | | llvm-svn: 59992
* rearrange and tidy some code, no functionality change.Chris Lattner2008-11-241-53/+52
| | | | llvm-svn: 59990
* minor cleanups to debug code, no functionality change.Chris Lattner2008-11-241-24/+33
| | | | llvm-svn: 59989
* reenable testChris Lattner2008-11-241-1/+0
| | | | llvm-svn: 59986
* reenable the right part of the code.Chris Lattner2008-11-241-1/+1
| | | | llvm-svn: 59985
* Temporarily XFAIL this test. r59976 and r59972 broke it.Bill Wendling2008-11-241-0/+1
| | | | llvm-svn: 59981
* Move the scheduler constructor functions to SchedulerRegistry.h, toDan Gohman2008-11-243-44/+41
| | | | | | | simplify header dependencies for front-ends that just want to choose a scheduler and don't need all the scheduling machinery declarations. llvm-svn: 59978
* Fix an unused-parameter warning.Dan Gohman2008-11-241-1/+1
| | | | llvm-svn: 59977
* revert an accidental commit, this fixes the regression on ↵Chris Lattner2008-11-241-4/+1
| | | | | | test/CodeGen/X86/isel-sink.ll llvm-svn: 59976
OpenPOWER on IntegriCloud