summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Don't sign extend the char when expanding char -> int duringNick Lewycky2009-02-212-2/+14
| | | | | | load(bitcast(char[4] to i32*)) evaluation. llvm-svn: 65246
* Add makefile debugging target; use "make print-FOO" to print theDaniel Dunbar2009-02-211-0/+8
| | | | | | value/definition/origin of FOO. llvm-svn: 65245
* bug 3610: Floating point vaarg not softened.Richard Pennington2009-02-212-0/+18
| | | | llvm-svn: 65239
* Add version of StringsEqualNoCase that takes two null-terminated C-strings ↵Ted Kremenek2009-02-211-0/+19
| | | | | | and compares up to 'len' characters. I tend to screw up string comparison functions, so anyone who is interested please review this\! llvm-svn: 65236
* Drop bunch of half-working stuff in the ext_weak linkage support.Anton Korobeynikov2009-02-213-16/+39
| | | | | | | | | | | Now we're using one gross, but quite robust hack :) (previous ones did not work, for example, when ext_weak symbol was used deep inside constant expression in the initializer). The proper fix of this problem will require some quite huge asmprinter changes and that's why was postponed. This fixes PR3629 by the way :) llvm-svn: 65230
* Pass different flags on different platforms when building PIC.Nick Lewycky2009-02-211-2/+13
| | | | llvm-svn: 65229
* Add AddrModeMatcher.cppEvan Cheng2009-02-211-0/+1
| | | | llvm-svn: 65228
* If two-address def is dead and the instruction does not define other ↵Evan Cheng2009-02-212-0/+73
| | | | | | registers, and it doesn't produce side effects, just delete the instruction. llvm-svn: 65218
* Teach LSR sink to sink the immediate portion of the common expression back ↵Evan Cheng2009-02-215-40/+199
| | | | | | into uses if they fit in address modes of all the uses. llvm-svn: 65215
* Make sure this doesn't access .end() too.Bill Wendling2009-02-211-3/+4
| | | | llvm-svn: 65213
* fix and clean up a commentGabor Greif2009-02-211-5/+4
| | | | llvm-svn: 65212
* Make sure we don't dereference the .end() of the container.Bill Wendling2009-02-211-1/+2
| | | | llvm-svn: 65211
* rename a function to indicate that it checks for profitability as wellChris Lattner2009-02-212-9/+314
| | | | | | | | as legality. Make load sinking and gep sinking more careful: we only do it when it won't pessimize loads from the stack. This has the added benefit of not producing code that is unanalyzable to SROA. llvm-svn: 65209
* Propagate more debug loc infos. This also includes some code cleaning.Bill Wendling2009-02-211-6/+18
| | | | llvm-svn: 65207
* We need to propagate the debug location information even when dealing with theBill Wendling2009-02-211-4/+4
| | | | | | prologue/epilogue. llvm-svn: 65206
* * Fixed spellingMisha Brukman2009-02-202-17/+68
| | | | | | | | * Linters now return their information instead of printing it, to enable easier unittesting * Added support for finding tabs in files, added to C++ linter llvm-svn: 65202
* Fix a bug that David Greene found in the DAGCombiner's logicDan Gohman2009-02-201-2/+2
| | | | | | | that checks whether it's safe to transform a store of a bitcast value into a store of the original value. llvm-svn: 65201
* Removed trailing whitespace.Misha Brukman2009-02-2010-314/+314
| | | | llvm-svn: 65199
* Removed trailing whitespace.Misha Brukman2009-02-202-2/+2
| | | | llvm-svn: 65197
* Removed trailing whitespace.Misha Brukman2009-02-2022-202/+202
| | | | llvm-svn: 65196
* Keep the newline character at the end of the lines whose trailing whitespace weMisha Brukman2009-02-201-1/+1
| | | | | | are deleting; otherwise, everything ends up on a single line. llvm-svn: 65185
* Only strip the newline character at the end of the lines that we're consideringMisha Brukman2009-02-201-2/+2
| | | | | | | for length and for trailing whitespace; otherwise, the whitespace themselves will also be removed. llvm-svn: 65182
* Fixed lint errors:Misha Brukman2009-02-2015-23/+30
| | | | | | | | * Alphabetized #includes * Removed trailing whitespace * Wrapped or shortened lines over 80 chars llvm-svn: 65181
* We have logic in there to emit a default debugging label at the beginning of aBill Wendling2009-02-201-4/+3
| | | | | | | | | function. Emitting another label after the prologue messes up the debugging. We are doing that because the first DebugLoc object it sees is different from the previous, which was nothing. Check for this situation, and don't emit one if it's the first. llvm-svn: 65180
* Fix strange logic in CollectIVUsers used to determine whether all uses areEvan Cheng2009-02-202-1/+52
| | | | | | | addresses, part 1. This fixes an obvious logic bug. Previously if the only in-loop use is a PHI, it would return AllUsesAreAddresses as true. llvm-svn: 65178
* Simplify code and reduce indentation. No functionality change.Dan Gohman2009-02-201-80/+70
| | | | llvm-svn: 65167
* Fix 80-column violations.Dan Gohman2009-02-201-4/+5
| | | | llvm-svn: 65159
* It's not necessary to check if Base is null here.Dan Gohman2009-02-201-2/+1
| | | | llvm-svn: 65157
* Support return of MMX values in 64-bit mode.Evan Cheng2009-02-202-3/+28
| | | | llvm-svn: 65152
* - Early exit a nested block.Bill Wendling2009-02-201-23/+27
| | | | | | | - Correct comment. - Whitespace changes. llvm-svn: 65149
* Add a comment about how Imm can be used for loop-variant values.Dan Gohman2009-02-201-1/+2
| | | | llvm-svn: 65147
* add note about sinTorok Edwin2009-02-201-0/+15
| | | | llvm-svn: 65137
* Factor address mode matcher out of codegen prepare to make it available to ↵Evan Cheng2009-02-203-643/+696
| | | | | | other passes, e.g. loop strength reduction. llvm-svn: 65134
* Just roll back the previous change to -mem2reg.Zhou Sheng2009-02-201-26/+0
| | | | | | Will re-think about this according to Chris's comments. llvm-svn: 65126
* patch to update the line number information in pass -mem2reg.Zhou Sheng2009-02-201-0/+26
| | | | | | | | Currently this pass will delete the variable declaration info, and keep the line number info. But the kept line number info is not updated, and some is redundant or not correct, this patch just updates those info. llvm-svn: 65123
* Fix a crash in the pre-alloc splitter exposed by recent codegen changes.Owen Anderson2009-02-202-0/+77
| | | | llvm-svn: 65121
* Add a quick pass to the stack slot colorer to eliminate some trivially ↵Owen Anderson2009-02-201-0/+62
| | | | | | | | | redundant spills after coloring. Ideally these would never get created in the first place, but until we enhance the spiller to have a more global picture of what's happening, this is necessary for code quality in some circumstances. llvm-svn: 65120
* 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
OpenPOWER on IntegriCloud