summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Added scalar casts test.Abramo Bagnara2010-12-281-0/+141
| | | | llvm-svn: 122599
* Cast away "comparison between signed and unsigned integer" warnings.Benjamin Kramer2010-12-282-4/+7
| | | | llvm-svn: 122598
* Fix a signed/unsigned comparison warning.Benjamin Kramer2010-12-281-1/+1
| | | | llvm-svn: 122597
* Avoid iterating every operand of an instruction in StrongPHIElimination, sinceCameron Zwarich2010-12-281-4/+3
| | | | | | | | we are only interested in the defs when discovering interferences. This is a 28% speedup running StrongPHIElimination on 403.gcc. llvm-svn: 122596
* Pacify the compiler. BestWeight cannot in fact be used uninitializedDuncan Sands2010-12-281-1/+1
| | | | | | | in this function, but the compiler was warning that it might be when doing a release build. llvm-svn: 122595
* Fix warning about size potentially being used uninitializedDuncan Sands2010-12-281-1/+0
| | | | | | when doing a release build. llvm-svn: 122594
* Silence gcc warning about an unused variable when doing a release build.Duncan Sands2010-12-281-0/+1
| | | | llvm-svn: 122593
* Canonicalize types before possible cast.Abramo Bagnara2010-12-281-1/+2
| | | | llvm-svn: 122592
* Relax address updates in the eh_frame section.Rafael Espindola2010-12-288-29/+145
| | | | llvm-svn: 122591
* Start adding basic support for emitting the call frame instructions.Rafael Espindola2010-12-284-2/+66
| | | | llvm-svn: 122590
* Support/Path: Deprecate Path::hasMagicNumber and replace all uses with ↵Michael J. Spencer2010-12-282-2/+7
| | | | | | fs::has_magic. llvm-svn: 122589
* Fix typo.Michael J. Spencer2010-12-281-9/+9
| | | | llvm-svn: 122588
* Support/PathV2: Implement has_magic.Michael J. Spencer2010-12-282-1/+39
| | | | llvm-svn: 122587
* Change an assertion to assert what the code actually relies upon.Cameron Zwarich2010-12-271-1/+1
| | | | llvm-svn: 122586
* fix some issues Frits noticed, add AliasAnalysis as a dependencyChris Lattner2010-12-271-7/+17
| | | | llvm-svn: 122585
* Add support for .cfi_lsda.Rafael Espindola2010-12-277-178/+283
| | | | llvm-svn: 122584
* MC/Mach-O/Thumb: Select appropriate relocation types for Thumb.Daniel Dunbar2010-12-272-10/+12
| | | | llvm-svn: 122583
* Land a first cut at StrongPHIElimination. There are only 5 new test failuresCameron Zwarich2010-12-271-64/+590
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when running without the verifier, and I have not yet checked them to see if the new results are still correct. There are more verifier failures, but they all seem to be additional occurrences of verifier failures that occur with the existing PHIElimination pass. There are a few obvious issues with the code: 1) It doesn't properly update the register equivalence classes during copy insertion, and instead recomputes them before merging live intervals and renaming registers. I wanted to keep this first patch simple for debugging purposes, but it shouldn't be very hard to do this. 2) It doesn't mix the renaming and live interval merging with the copy insertion process, which leads to a lot of virtual register churn. Virtual registers and live intervals are created, only to later be merged into others. The code should be smarter and only create a new virtual register if there is no existing register in the same congruence class. 3) In one place the code uses a DenseMap per basic block, which is unnecessary heap allocation. There should be an inline storage version of DenseMap. I did a quick compile-time test of running llc on 403.gcc with and without StrongPHIElimination. It is slightly slower with StrongPHIElimination, because the small decrease in the coalescer runtime can't beat the increase in phi elimination runtime. Perhaps fixing the above performance issues will narrow the gap. I also haven't yet run any tests of the quality of the generated code. llvm-svn: 122582
* Add knowledge of phi-def and phi-kill valnos to MachineVerifier's predecessorCameron Zwarich2010-12-271-1/+17
| | | | | | | | | valno verification. The "Different value live out of predecessor" check is incorrect in the case of phi-def valnos, so just skip that check for phi-def valnos and instead check that all of the valnos for predecessors have phi-kill. Fixes PR8863. llvm-svn: 122581
* Support/PathV1: Deprecate GetRootDirectory.Michael J. Spencer2010-12-272-7/+7
| | | | llvm-svn: 122580
* Handle reloc_riprel_4byte_movq_load. Should make the bots happy.Rafael Espindola2010-12-272-0/+8
| | | | llvm-svn: 122579
* More __uuidof validation:Francois Pichet2010-12-272-18/+39
| | | | | | | 1. Do not validate for uuid attribute if the type is template dependent. 2. Search every class declaration and definition for the uuid attribute. llvm-svn: 122578
* Add support for the same encodings of the personality function that gnu asRafael Espindola2010-12-2711-46/+518
| | | | | | supports. llvm-svn: 122577
* BuildLibCalls: Nuke EmitMemCpy, EmitMemMove and EmitMemSet. They are dead ↵Benjamin Kramer2010-12-272-63/+5
| | | | | | and superseded by IRBuilder. llvm-svn: 122576
* SimplifyLibCalls: Use IRBuilder to simplify code.Benjamin Kramer2010-12-271-67/+48
| | | | llvm-svn: 122575
* have loop-idiom nuke instructions that feed stores that get removed.Chris Lattner2010-12-271-6/+45
| | | | llvm-svn: 122574
* implement enough of the memset inference algorithm to recognize and insert Chris Lattner2010-12-264-13/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | memsets. This is still missing one important validity check, but this is enough to compile stuff like this: void test0(std::vector<char> &X) { for (std::vector<char>::iterator I = X.begin(), E = X.end(); I != E; ++I) *I = 0; } void test1(std::vector<int> &X) { for (long i = 0, e = X.size(); i != e; ++i) X[i] = 0x01010101; } With: $ clang t.cpp -S -o - -O2 -emit-llvm | opt -loop-idiom | opt -O3 | llc to: __Z5test0RSt6vectorIcSaIcEE: ## @_Z5test0RSt6vectorIcSaIcEE ## BB#0: ## %entry subq $8, %rsp movq (%rdi), %rax movq 8(%rdi), %rsi cmpq %rsi, %rax je LBB0_2 ## BB#1: ## %bb.nph subq %rax, %rsi movq %rax, %rdi callq ___bzero LBB0_2: ## %for.end addq $8, %rsp ret ... __Z5test1RSt6vectorIiSaIiEE: ## @_Z5test1RSt6vectorIiSaIiEE ## BB#0: ## %entry subq $8, %rsp movq (%rdi), %rax movq 8(%rdi), %rdx subq %rax, %rdx cmpq $4, %rdx jb LBB1_2 ## BB#1: ## %for.body.preheader andq $-4, %rdx movl $1, %esi movq %rax, %rdi callq _memset LBB1_2: ## %for.end addq $8, %rsp ret llvm-svn: 122573
* start using irbuilder to make mem intrinsics in a few passes.Chris Lattner2010-12-263-108/+36
| | | | llvm-svn: 122572
* add methods to IRBuilder to create memcpy/memset/memmove.Chris Lattner2010-12-262-2/+123
| | | | llvm-svn: 122571
* Fix .cfi_personality on 32 bit systems.Rafael Espindola2010-12-261-1/+1
| | | | llvm-svn: 122570
* Add support for GNU runtime property set / get structure functions. Minor ↵David Chisnall2010-12-264-23/+57
| | | | | | refactoring of Mac runtime (returns the same function for both, as the Mac runtimes currently only provide a single entry point for setting and getting struct properties, although this will presumably be fixed at some point). llvm-svn: 122569
* Add support for @note. Patch by Jörg Sonnenberger.Rafael Espindola2010-12-264-1/+19
| | | | llvm-svn: 122568
* sketch more of this out.Chris Lattner2010-12-261-20/+64
| | | | llvm-svn: 122567
* Add basic support for .cfi_personality.Rafael Espindola2010-12-265-21/+91
| | | | llvm-svn: 122566
* move isBytewiseValue out to ValueTracking.h/cppChris Lattner2010-12-263-69/+77
| | | | llvm-svn: 122565
* Fix for PR8695.David Chisnall2010-12-262-1/+9
| | | | llvm-svn: 122564
* actually add the file...Chris Lattner2010-12-261-0/+103
| | | | llvm-svn: 122563
* Start of a pass for recognizing memset and memcpy idioms.Chris Lattner2010-12-265-0/+10
| | | | | | No functionality yet. llvm-svn: 122562
* Simplify code.Benjamin Kramer2010-12-261-1/+1
| | | | llvm-svn: 122561
* fix some sort of weird pastoChris Lattner2010-12-261-60/+0
| | | | llvm-svn: 122560
* add a noteChris Lattner2010-12-261-0/+91
| | | | llvm-svn: 122559
* The -fshort-wchar option causes wchar_t to become unsigned, in addition to beingChris Lattner2010-12-2518-32/+70
| | | | | | | 16-bits in size. Implement this by splitting WChar into two enums, like we have for char. This fixes a miscompmilation of XULRunner, PR8856. llvm-svn: 122558
* Generalize a previous change, fixing PR8855 - an valid large immediateChris Lattner2010-12-252-6/+10
| | | | | | rejected by the mc assembler. llvm-svn: 122557
* don't lose TD infoChris Lattner2010-12-252-3/+3
| | | | llvm-svn: 122556
* switch the inliner alignment enforcement stuff to use theChris Lattner2010-12-251-27/+8
| | | | | | | getOrEnforceKnownAlignment function, which simplifies the code and makes it stronger. llvm-svn: 122555
* Move getOrEnforceKnownAlignment out of instcombine into Transforms/Utils.Chris Lattner2010-12-255-103/+115
| | | | llvm-svn: 122554
* Support/PathV1: Deprecate makeAbsolute and remove Unix impl because it ↵Michael J. Spencer2010-12-252-13/+3
| | | | | | annoys people. llvm-svn: 122553
* Remove all uses of PathV1::GetRootDirectory.Michael J. Spencer2010-12-251-7/+6
| | | | llvm-svn: 122552
* Header warning patrol.Eric Christopher2010-12-251-2/+2
| | | | llvm-svn: 122551
* Fix a thinko pointed out by Frits van Bommel: looking through global ↵Benjamin Kramer2010-12-241-22/+19
| | | | | | variables in isBytewiseValue is not safe. llvm-svn: 122550
OpenPOWER on IntegriCloud