summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Add a testcase to verify that commands don't crash when they hitDan Gohman2010-08-181-0/+9
| | | | | | errors on stderr. llvm-svn: 111440
* Make raw_fd_ostream consider itself the owner of STDOUT_FILENO whenDan Gohman2010-08-182-4/+10
| | | | | | | | | constructed with an output filename of "-". In particular, allow the file descriptor to be closed, and close the file descriptor in the destructor if it hasn't been explicitly closed already, to ensure that any write errors are detected. llvm-svn: 111436
* When sending stats output to stdout for grepping, don't emit normalDan Gohman2010-08-181-1/+1
| | | | | | output to standard output also. llvm-svn: 111435
* move gep decomposition out of ValueTracking into BasicAA. The form ofChris Lattner2010-08-183-242/+229
| | | | | | | | | decomposition that it is doing is very basicaa specific and is only used by basicaa. Now with less tree breakingness. llvm-svn: 111433
* Tidy.Dan Gohman2010-08-181-5/+4
| | | | llvm-svn: 111432
* Minor simplification. Gets rid of a needless temporary.Bill Wendling2010-08-181-4/+3
| | | | llvm-svn: 111430
* Use ConstantRange to propagate information through value definitions.Owen Anderson2010-08-181-4/+83
| | | | llvm-svn: 111425
* When sending stats output to stdout for grepping, don't emit normalDan Gohman2010-08-188-9/+9
| | | | | | output to standard output also. llvm-svn: 111401
* Thinking about it, we don't need MachineDominatorTree after all. The DomValueJakob Stoklund Olesen2010-08-182-19/+26
| | | | | | map discovers the iterated dominance frontier for free. llvm-svn: 111400
* Introduce a ScopedFatalErrorHandler class to make it easy to registerDan Gohman2010-08-181-0/+12
| | | | | | | fatal error handlers which automatically get unregistered at the end of a scope. llvm-svn: 111398
* Revert r111394. It was too aggressive.Jakob Stoklund Olesen2010-08-182-12/+3
| | | | | | | | | | We must complete the DFS, otherwise we might miss needed phi-defs, and prematurely color live ranges with a non-dominating value. This is not a big deal since we get to color more of the CFG and the next mapValue call will be faster. llvm-svn: 111397
* Aggressively prune the DFS when inserting phi-defs.Jakob Stoklund Olesen2010-08-182-3/+12
| | | | llvm-svn: 111394
* Add the LiveIntervalMap class. Don't hook it up yet.Jakob Stoklund Olesen2010-08-182-1/+279
| | | | | | | | | | | | | | | | LiveIntervalMap maps values from a parent LiveInterval to a child interval that is a strict subset. It will create phi-def values as needed to preserve the VNInfo SSA form in the child interval. This leads to an algorithm very similar to the one in SSAUpdaterImpl.h, but with enough differences that the code can't be reused: - We don't need to manipulate PHI instructions. - LiveIntervals have kills. - We have MachineDominatorTree. - We can use df_iterator. llvm-svn: 111393
* Add df_iterator::getPathLength and getPath as a way of getting a path from theJakob Stoklund Olesen2010-08-181-0/+10
| | | | | | entry node to the current node. llvm-svn: 111392
* Revert r111375, "move gep decomposition out of ValueTracking into BasicAA. TheDaniel Dunbar2010-08-183-213/+241
| | | | | | form of", it doesn't pass tests. llvm-svn: 111385
* Improve whitespace.Bill Wendling2010-08-181-1/+2
| | | | llvm-svn: 111384
* Marked with ATTRIBUTE_USED so that clang doesn't complain.Bill Wendling2010-08-181-1/+1
| | | | llvm-svn: 111383
* Inform LazyValueInfo whenever a block is deleted, to avoid dangling pointer ↵Owen Anderson2010-08-183-21/+56
| | | | | | issues. llvm-svn: 111382
* MC/ELF: Allow null values in virtual sections, ELF doesn't use specialDaniel Dunbar2010-08-183-1/+29
| | | | | | directives for putting contents in .bss, for example. llvm-svn: 111376
* move gep decomposition out of ValueTracking into BasicAA. The form ofChris Lattner2010-08-183-241/+213
| | | | | | | decomposition that it is doing is very basicaa specific and is only used by basicaa. llvm-svn: 111375
* Add hook for re-using virtual base registers for local stack slot access.Jim Grosbach2010-08-184-12/+56
| | | | | | | | | | Nothing fancy, just ask the target if any currently available base reg is in range for the instruction under consideration and use the first one that is. Placeholder ARM implementation simply returns false for now. ongoing saga of rdar://8277890 llvm-svn: 111374
* Eliminate some redundancy by relying on raw_fd_ostream to handle "-"Dan Gohman2010-08-181-43/+34
| | | | | | properly. llvm-svn: 111373
* Allow the -analyze option to follow the -o option, which defaults toDan Gohman2010-08-181-30/+35
| | | | | | standard output, instead of just hardcoding outs(). llvm-svn: 111372
* Don't translate "-" to outs() manually; raw_ostream does that automatically.Dan Gohman2010-08-181-31/+23
| | | | llvm-svn: 111371
* Don't translate "-" to outs() manually; raw_ostream does thatDan Gohman2010-08-181-6/+3
| | | | | | automatically. llvm-svn: 111370
* Don't register stdout to be deleted on a signal.Dan Gohman2010-08-181-1/+2
| | | | llvm-svn: 111368
* Remove an unused command-line option.Dan Gohman2010-08-181-3/+0
| | | | llvm-svn: 111367
* Preserve subregs on PHI source operands. Patch by Krister Wombell!Jakob Stoklund Olesen2010-08-181-1/+4
| | | | llvm-svn: 111366
* Fix a bug with insertelement on SPU. Kalle Raiskila2010-08-182-6/+26
| | | | | | | The previous algorithm in LowerVECTOR_SHUFFLE didn't check all requirements for "monotonic" shuffles. llvm-svn: 111361
* Remove all traces of v2[i,f]32 on SPU. Kalle Raiskila2010-08-188-120/+14
| | | | | | | | The "half vectors" are now widened to full size by the legalizer. The only exception is in parameter passing, where half vectors are expanded. This causes changes to some dejagnu tests. llvm-svn: 111360
* Change SPU C calling convention to match that described in Kalle Raiskila2010-08-182-11/+45
| | | | | | | | "SPU Application Binary Interface Specification, v1.9" by IBM. Specifically: use r3-r74 to pass parameters and the return value. llvm-svn: 111358
* fix a buggy testChris Lattner2010-08-181-3/+3
| | | | llvm-svn: 111354
* fix PR7589: In brief:Chris Lattner2010-08-182-3/+24
| | | | | | | | | gep P, (zext x) != gep P, (sext x) DecomposeGEPExpression was getting this wrong, confusing basicaa. llvm-svn: 111352
* filecheckize and detrivialize.Chris Lattner2010-08-181-3/+26
| | | | llvm-svn: 111350
* Fix PR7755: knowing something about an inval for a predChris Lattner2010-08-182-8/+28
| | | | | | | | | from the LHS should disable reconsidering that pred on the RHS. However, knowing something about the pred on the RHS shouldn't disable subsequent additions on the RHS from happening. llvm-svn: 111349
* fit in 80 colsChris Lattner2010-08-181-2/+3
| | | | llvm-svn: 111348
* remove some dead code.Chris Lattner2010-08-182-12/+0
| | | | llvm-svn: 111345
* remove some dead code.Chris Lattner2010-08-183-15/+4
| | | | llvm-svn: 111344
* remove some code that is dead now that lea's are modeled with segment registers.Chris Lattner2010-08-181-14/+0
| | | | llvm-svn: 111343
* remove dead prototype.Chris Lattner2010-08-181-2/+1
| | | | llvm-svn: 111342
* Expand ZERO_EXTEND operations for NEON vector types.Bob Wilson2010-08-182-0/+8
| | | | | | Testcase from Nick Lewycky. llvm-svn: 111341
* Fix the "Finished Creating" messages for aliases to print theDan Gohman2010-08-181-1/+1
| | | | | | right name. llvm-svn: 111340
* Revert r111321. This doesn't fix a problem.Dan Gohman2010-08-181-23/+19
| | | | llvm-svn: 111339
* stomp some more undefined behavior, PR7775.Chris Lattner2010-08-181-6/+7
| | | | llvm-svn: 111337
* don't emit zero bit fields with Emit, fixing undefined behavior,Chris Lattner2010-08-181-3/+5
| | | | | | PR7778 llvm-svn: 111336
* Don't pass in a null pointer to std::string's ctor, an empty stringChris Lattner2010-08-181-1/+4
| | | | | | ref should produce an empty std::string. This fixes PR7879. llvm-svn: 111332
* fix a broken linkChris Lattner2010-08-171-1/+1
| | | | llvm-svn: 111326
* include config.h to get config params, hopefully unbreaking mingw builder.Chris Lattner2010-08-171-0/+1
| | | | llvm-svn: 111325
* Fix the rest of rdar://8318441 which happens when a raw_fd_ostreamChris Lattner2010-08-171-19/+23
| | | | | | | | | | (e.g. errs()) fails in close() due to (e.g.) a broken pipe. As previously written, the had_error() flag would get set and then the raw_ostream dtor would report a fatal error. There is nothing the client can do about this and we have no way to report the error, so just eat it. llvm-svn: 111321
* report_fatal_error can't use errs(), because errs() can call Chris Lattner2010-08-171-8/+26
| | | | | | | into report_fatal_error. Just blast the string to stderr with write(2) and hope for the best! Part of rdar://8318441 llvm-svn: 111320
OpenPOWER on IntegriCloud