summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* make these tests pass when run on a G5.Chris Lattner2009-02-204-5/+5
| | | | llvm-svn: 65117
* Implement "superhero" strength reduction, or full strengthDan Gohman2009-02-204-111/+381
| | | | | | | | | | | | | | | | | reduction of address calculations down to basic pointer arithmetic. This is currently off by default, as it needs a few other features before it becomes generally useful. And even when enabled, full strength reduction is only performed when it doesn't increase register pressure, and when several other conditions are true. This also factors out a bunch of exisiting LSR code out of StrengthReduceStridedIVUsers into separate functions, and tidies up IV insertion. This actually decreases register pressure even in non-superhero mode. The change in iv-users-in-other-loops.ll is an example of this; there are two more adds because there are two fewer leas, and there is less spilling. llvm-svn: 65108
* Add an accessor method to DwarfWriter to tell of debugging info should be ↵Bill Wendling2009-02-203-6/+16
| | | | | | emitted. llvm-svn: 65092
* Add a default debug location object to the Machine Function. It's used to ↵Bill Wendling2009-02-201-0/+12
| | | | | | emit a default debugging label at the beginning of a function. llvm-svn: 65091
* Temporarily revert r65065. It was causing test failures.Bill Wendling2009-02-191-1/+3
| | | | llvm-svn: 65068
* Print out debug info when printing the machine instruction.Bill Wendling2009-02-191-0/+9
| | | | llvm-svn: 65067
* Check for -fast here too.Bill Wendling2009-02-191-3/+1
| | | | llvm-svn: 65065
* Generate these labels when we're in "fast" mode, not simply when we're no inBill Wendling2009-02-193-11/+9
| | | | | | "optimize-for-size" mode. llvm-svn: 65064
* Describe tail merging's use of InsertBranch.Dale Johannesen2009-02-191-6/+11
| | | | llvm-svn: 65062
* Use DEBUG() instead of passing *DOUT to WriteAsOperand,Dan Gohman2009-02-191-17/+7
| | | | | | | since the latter just passes a null reference when debugging is not enabled. llvm-svn: 65060
* Make the debug output of LSR less cryptic and more informative.Dan Gohman2009-02-191-29/+46
| | | | llvm-svn: 65057
* Print out a new label only if the debug location *tuple* is different. The debugBill Wendling2009-02-192-6/+16
| | | | | | locations may change, but the tuples may be the same. llvm-svn: 65039
* Forgot to check that debug information is supported.Bill Wendling2009-02-191-2/+2
| | | | llvm-svn: 65034
* Regenerate.Nick Lewycky2009-02-191-2/+2
| | | | llvm-svn: 65020
* Default to building with position independent code. This may increase LLVM'sNick Lewycky2009-02-191-3/+3
| | | | | | run time but will make LLVM easier to use as a library. llvm-svn: 65019
* If an executable is run through a symlink, dladdr will return theChris Lattner2009-02-191-3/+8
| | | | | | | | symlink. We really want the ultimate executable being run, not the symlink. This lets clang find its headers when invoked through a symlink. rdar://6602012 llvm-svn: 65017
* Fix the logic in this assertion to properly validate the numberDan Gohman2009-02-191-2/+3
| | | | | | of arguments. llvm-svn: 64999
* Reapply r57340. VMKit does not presently rely on materializeFunctionDan Gohman2009-02-191-2/+2
| | | | | | | being called with the lock released, and this fixes a race condition in the JIT as used by lli. llvm-svn: 64997
* Temporarily XFAIL this test.Bill Wendling2009-02-191-0/+1
| | | | llvm-svn: 64987
* Put code that generates debug labels into TableGen so that it can be used byBill Wendling2009-02-189-25/+26
| | | | | | everyone. llvm-svn: 64978
* add proper asmwriter and asmparser support for anonymous functions.Chris Lattner2009-02-183-11/+41
| | | | llvm-svn: 64953
* In theory the aliasee may have dead constant usersDuncan Sands2009-02-181-0/+1
| | | | | | | | here. Since we only do the transform if there is one use, strip off any such users in the hope of making the transform fire more often. llvm-svn: 64926
* really fix styleRafael Espindola2009-02-181-6/+6
| | | | llvm-svn: 64923
* The subprogram die may not exist while creating "default" scope.Devang Patel2009-02-182-1/+35
| | | | llvm-svn: 64920
* Use a sign-extend instead of a zero-extend when promoting aDan Gohman2009-02-186-19/+96
| | | | | | | | | | | | trip count value when the original loop iteration condition is signed and the canonical induction variable won't undergo signed overflow. This isn't required for correctness; it just preserves more information about original loop iteration values. Add a getTruncateOrSignExtend method to ScalarEvolution, following getTruncateOrZeroExtend. llvm-svn: 64918
* Simplify by using dyn_cast instead of isa and cast.Dan Gohman2009-02-181-6/+5
| | | | llvm-svn: 64917
* Clarify the definition of "latch block" in a comment.Dan Gohman2009-02-181-4/+4
| | | | llvm-svn: 64916
* Add explicit keywords.Dan Gohman2009-02-185-6/+6
| | | | llvm-svn: 64915
* Add support to the JIT for true non-lazy operation. When a call to a functionNate Begeman2009-02-1813-40/+289
| | | | | | | | | | | | | | | | | | | | that has not been JIT'd yet, the callee is put on a list of pending functions to JIT. The call is directed through a stub, which is updated with the address of the function after it has been JIT'd. A new interface for allocating and updating empty stubs is provided. Add support for removing the ModuleProvider the JIT was created with, which would otherwise invalidate the JIT's PassManager, which is initialized with the ModuleProvider's Module. Add support under a new ExecutionEngine flag for emitting the infomration necessary to update Function and GlobalVariable stubs after JITing them, by recording the address of the stub and the name of the GlobalValue. This allows code to be copied from one address space to another, where libraries may live at different virtual addresses, and have the stubs updated with their new correct target addresses. llvm-svn: 64906
* fix styleRafael Espindola2009-02-181-4/+2
| | | | llvm-svn: 64905
* Add a test for r61358, which I forgot to add way back when.Owen Anderson2009-02-181-0/+193
| | | | llvm-svn: 64904
* Factor out the code to add a MachineOperand to a MachineInstrBuilder.Dan Gohman2009-02-189-161/+63
| | | | llvm-svn: 64891
* Eliminate several more unnecessary intptr_t casts.Dan Gohman2009-02-1816-31/+31
| | | | llvm-svn: 64888
* Change the argument type in this test to something less convoluted,Dan Gohman2009-02-181-1/+1
| | | | | | since it isn't actually used. llvm-svn: 64883
* GV with null value initializer shouldn't go to BSS if it's meant for a ↵Evan Cheng2009-02-184-3/+12
| | | | | | mergeable strings section. Currently it only checks for Darwin. Someone else please check if it should apply to other targets as well. llvm-svn: 64877
* allow TimeRegion to take a potentially-null pointer to aChris Lattner2009-02-181-4/+9
| | | | | | timer for clang. llvm-svn: 64874
* Fix a corner case in the new indvars promotion logic: if thereDan Gohman2009-02-182-19/+63
| | | | | | | | | | are multiple IV's in a loop, some of them may under go signed or unsigned wrapping even if the IV that's used in the loop exit condition doesn't. Restrict sign-extension-elimination and zero-extension-elimination to only those that operate on the original loop-controlling IV. llvm-svn: 64866
* Fix a typo in a comment.Dan Gohman2009-02-181-1/+1
| | | | llvm-svn: 64859
* If an alias is dead and so is its aliasee, then globaldce wouldDuncan Sands2009-02-172-8/+20
| | | | | | | crash because the alias would still be using the aliasee when the aliasee was deleted. llvm-svn: 64844
* And now, not so elegant, test case...Devang Patel2009-02-171-0/+13
| | | | llvm-svn: 64838
* Remove changes that were accidently included in previous commit.Devang Patel2009-02-171-6/+0
| | | | llvm-svn: 64835
* The debugger sometimes lookup dynamically in the runtime to find ivar info ↵Devang Patel2009-02-176-6/+31
| | | | | | | | of any Objective-C classes. It would be very helpful to debugger if the compiler encodes runtime version number in DWARF. Add support for two additional DWARF attributes to encode Objective-C runtime version number. llvm-svn: 64834
* Remove trailing whitespace to reduce later commit patch noise.Scott Michel2009-02-1710-1729/+1729
| | | | | | | | (Note: Eventually, commits like this will be handled via a pre-commit hook that does this automagically, as well as expand tabs to spaces and look for 80-col violations.) llvm-svn: 64827
* Emit debug info for bitfields.Devang Patel2009-02-174-7/+49
| | | | llvm-svn: 64815
* tools like nm and ar only need register_claim_file and add_symbols. Don't abortRafael Espindola2009-02-171-5/+10
| | | | | | if other hooks are missing. llvm-svn: 64812
* LoopIndexSplit doesn't actually use ScalarEvolution.Dan Gohman2009-02-171-4/+1
| | | | llvm-svn: 64811
* Add a method to ScalarEvolution for telling it when a loop has beenDan Gohman2009-02-174-12/+37
| | | | | | | | | | | modified in a way that may effect the trip count calculation. Change IndVars to use this method when it rewrites pointer or floating-point induction variables instead of using a doInitialization method to sneak these changes in before ScalarEvolution has a chance to see the loop. This eliminates the need for LoopPass to depend on ScalarEvolution. llvm-svn: 64810
* commit a tweaked version of Daniel's patch for PR3599. We nowChris Lattner2009-02-172-26/+52
| | | | | | | eliminate all the extensions and all but the one required truncate from the testcase, but the or/and/shift stuff still isn't zapped. llvm-svn: 64809
* Move dumpPassStructure out of line.Dan Gohman2009-02-172-9/+12
| | | | llvm-svn: 64796
* Tidy whitespace.Dan Gohman2009-02-171-17/+16
| | | | llvm-svn: 64791
OpenPOWER on IntegriCloud