summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move CoerceAvailableValueToLoadType earlier in GVN.cpp. Hook it upChris Lattner2009-09-201-105/+152
| | | | | | | | so that nonlocal and partially redundant loads can use it as well. The testcase shows examples of craziness this can handle. This triggers *many* times in 176.gcc. llvm-svn: 82403
* change the interface to CoerceAvailableValueToLoadType to be Chris Lattner2009-09-201-15/+21
| | | | | | more generic. llvm-svn: 82402
* enhance GVN to forward substitute a stored value to a loadChris Lattner2009-09-201-15/+129
| | | | | | | | (and load -> load) when the base pointers must alias but when they are different types. This occurs very very frequently in 176.gcc and other code that uses bitfields a lot. llvm-svn: 82399
* update an entry, delete an entry which has been fixed.Chris Lattner2009-09-201-36/+15
| | | | llvm-svn: 82398
* tidy upChris Lattner2009-09-201-3/+3
| | | | llvm-svn: 82397
* --- Reverse-merging r82282 into '.':Bill Wendling2009-09-203-58/+22
| | | | | | | | | | | | | U lib/CodeGen/AsmPrinter/DwarfException.cpp U lib/CodeGen/AsmPrinter/DwarfException.h --- Reverse-merging r82274 into '.': U lib/Target/TargetLoweringObjectFile.cpp G lib/CodeGen/AsmPrinter/DwarfException.cpp These revisions were breaking everything. llvm-svn: 82396
* remove a temporary hack.Chris Lattner2009-09-202-4/+2
| | | | llvm-svn: 82395
* rename X86ATTAsmPrinter.cpp -> X86AsmPrinter.cpp likewise the .h file.Chris Lattner2009-09-205-958/+941
| | | | llvm-svn: 82394
* move target registry stuff to X86ATTAsmPrinter.cppChris Lattner2009-09-202-27/+25
| | | | llvm-svn: 82393
* simplify this now that createX86CodePrinterPass is trivialChris Lattner2009-09-201-14/+2
| | | | llvm-svn: 82392
* rename X86ATTAsmPrinter class -> X86AsmPrinterChris Lattner2009-09-205-37/+35
| | | | llvm-svn: 82391
* remove the asmstring, it is now dead. Improve comment.Chris Lattner2009-09-201-3/+4
| | | | llvm-svn: 82390
* Peer through zext and sext to eliminate them when it is safe to do so.Nick Lewycky2009-09-202-22/+16
| | | | llvm-svn: 82389
* kill off printPICLabel now, it's specialness is handled byChris Lattner2009-09-205-18/+2
| | | | | | | the MachineInstr ->MCInst lowering process, not in the asmprinter. llvm-svn: 82388
* delete X86IntelAsmPrinter! Now -x86-asm-syntax just switchesChris Lattner2009-09-205-815/+5
| | | | | | the instruction syntax, not the entire asmprinter. llvm-svn: 82387
* Fold 'icmp eq (icmp), true' into an xor(icmp).Nick Lewycky2009-09-201-0/+14
| | | | llvm-svn: 82386
* Add an intel syntax MCInstPrinter implementation. You can nowChris Lattner2009-09-206-10/+244
| | | | | | transcode from AT&T to intel syntax with "llvm-mc foo.s -output-asm-variant=1" llvm-svn: 82385
* tidy upChris Lattner2009-09-201-1/+1
| | | | llvm-svn: 82384
* eliminate a use of strtoul.Chris Lattner2009-09-201-12/+2
| | | | llvm-svn: 82382
* split random COFF asmprinter state out to X86COFFMachineModuleInfo.h.Chris Lattner2009-09-206-137/+238
| | | | | | Make dllexport directives come out in determinstic order. llvm-svn: 82381
* Correct the comment; this applies to fcmp too.Nick Lewycky2009-09-201-1/+1
| | | | llvm-svn: 82380
* Remove tab, again.Nick Lewycky2009-09-201-1/+1
| | | | llvm-svn: 82379
* Teach the constant folder how to not a cmpinst.Nick Lewycky2009-09-201-0/+14
| | | | llvm-svn: 82378
* smallvectorize getExtraOptionNamesChris Lattner2009-09-201-2/+1
| | | | llvm-svn: 82377
* minor cleanups.Chris Lattner2009-09-201-22/+24
| | | | llvm-svn: 82375
* strength reduce further StringRef-> const char*, saving another 620 bytes.Chris Lattner2009-09-201-5/+11
| | | | llvm-svn: 82372
* Try turning icmp(bitcast(x), bitcast(y)) into icmp(bitcast(bitcast(x)), y) inNick Lewycky2009-09-201-0/+10
| | | | | | the hopes that the two bitcasts will merge. llvm-svn: 82371
* switch an std::string to StringRef, shaving 400 bytes off CommandLine.oChris Lattner2009-09-201-11/+10
| | | | llvm-svn: 82370
* Remove tabs I added.Nick Lewycky2009-09-201-8/+8
| | | | llvm-svn: 82369
* the switch from std::map -> StringMap caused --help output to be in Chris Lattner2009-09-201-5/+15
| | | | | | non-sorted order, restore the sort. llvm-svn: 82368
* eliminate the duplicate detection loop, moving it into the loop that ↵Chris Lattner2009-09-201-13/+6
| | | | | | populates the Opts vector in the first place. llvm-svn: 82367
* Eliminate a masochistic "algorithm" loop, shrinking CommandLine.o from ↵Chris Lattner2009-09-201-13/+8
| | | | | | 71524->70700 bytes. llvm-svn: 82366
* don't use count + insert, just do insert + failure. Also, instead of ↵Chris Lattner2009-09-201-6/+9
| | | | | | | | deleting from the middle of a vector, swap the last element in and pop_back. Also saves 330 bytes :) llvm-svn: 82365
* switch to SmallPtrSet instead of std::set, saving 1K from theChris Lattner2009-09-201-4/+4
| | | | | | release-asserts .o file (72900->71856). llvm-svn: 82364
* change an std::sort to an array_pod_sort call, shrinking CommandLine.o by 9%.Chris Lattner2009-09-201-1/+2
| | | | llvm-svn: 82363
* Several changes together in a murky mess:Chris Lattner2009-09-201-84/+102
| | | | | | | | | | | | 1. Change some "\n" -> '\n'. 2. eliminte some std::string's by using raw_ostream::indent. 3. move a bunch of code out of the main arg parser routine into a new static HandlePrefixedOrGroupedOption function. 4. Greatly simplify the implementation of getOptionPred, and make it avoid splitting prefix options at = when that doesn't match a non-prefix option. llvm-svn: 82362
* Clean up the usage of evaluateICmpRelation's return value.Nick Lewycky2009-09-201-37/+30
| | | | | | | Add another line to the ConstantExprFold test to demonstrate the GEPs may not wrap around in either the signed or unsigned senses. llvm-svn: 82361
* Fix refacto, this code was expecting to stride past the argument prefix.Daniel Dunbar2009-09-201-0/+1
| | | | llvm-svn: 82360
* Strip trailing whitespace.Daniel Dunbar2009-09-201-41/+41
| | | | llvm-svn: 82359
* Remove dead store by taking a guess at what Chris meant. I wasn't able toNick Lewycky2009-09-201-2/+1
| | | | | | design a testcase that would tickle this behaviour. llvm-svn: 82357
* Still one more thing wrong here...Bill Wendling2009-09-201-0/+5
| | | | llvm-svn: 82356
* Tabs -> spaces, and remove trailing whitespace.Daniel Dunbar2009-09-2019-1235/+1234
| | | | llvm-svn: 82355
* Here's fun! It turns out that these filter functions can be internal. If they'reBill Wendling2009-09-202-7/+2
| | | | | | | | internal, they shouldn't use the indirect pointer stuff. In the case of throw_rethrow_test, it was marked as 'internal' and calculated its own offset to its contents. llvm-svn: 82354
* Delete dead code. sext and zext can not turn integers into pointers. Further,Nick Lewycky2009-09-201-15/+0
| | | | | | the optimization described in the comment is only valid with target data. llvm-svn: 82353
* convert argname to StringRef, simplifying LookupOption.Chris Lattner2009-09-201-21/+22
| | | | llvm-svn: 82352
* convert 'Value' to StringRef which makes it easier to Chris Lattner2009-09-201-12/+8
| | | | | | maintain the "null is unspecified, empty is empty" semantics. llvm-svn: 82351
* Change CommaSeparated processing to do it with StringRef instead of ↵Chris Lattner2009-09-201-21/+26
| | | | | | | | temporary std::strings. This requires StringRef'izing ProvideOption which I also did. llvm-svn: 82350
* Value* were never meant to be const. Removing constness from the constantNick Lewycky2009-09-202-184/+151
| | | | | | | folder removes a lot of const_casting and requires no changes to clang or llvm-gcc. llvm-svn: 82349
* rewrite ParseCStringVector in terms of stringref.Chris Lattner2009-09-201-33/+22
| | | | llvm-svn: 82348
* move a couple non-trivial methods out of line, add new Chris Lattner2009-09-201-0/+71
| | | | | | find_first_of/find_first_of methods. llvm-svn: 82347
OpenPOWER on IntegriCloud