summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ExtractFunction.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't pass target name into TargetData anymore, it is never used or needed.Chris Lattner2006-06-161-1/+1
| | | | llvm-svn: 28831
* Remove dead return value.Chris Lattner2006-05-121-1/+1
| | | | llvm-svn: 28245
* Fix a really annoying bug in bugpoint that made reducing C++ testcasesChris Lattner2006-03-081-4/+89
| | | | | | | almost impossible with the new CFE. It now guarantees that the static ctor/dtor list is correctly split between the modules. llvm-svn: 26624
* add explicit #includes of iostreamChris Lattner2006-01-221-0/+1
| | | | llvm-svn: 25510
* Remove trailing whitespaceMisha Brukman2005-04-221-5/+5
| | | | llvm-svn: 21428
* Replace more a*'s with arg_*'s, thanks to Gabor Greif!Chris Lattner2005-03-151-2/+2
| | | | llvm-svn: 20615
* Fix a bugpoint crash that JeffC noticed, looking like this:Chris Lattner2005-02-231-1/+2
| | | | | | | | | | | | | | | | *** Attempting to perform final cleanups: Final cleanups failed. Sorry. :( Ple ase report a bug! <llc>llc.exe: bytecode didn't read correctly. llc.exe: bytecode didn't read correctly. <crash> Assertion failed: M && "You can't write a null module!!", file c:\llvm\lib\bytec ode\writer\writer.cpp, line 1094 The fact that llc bombed (in this case) is ok, but bugpoint shouldn't crash after this. llvm-svn: 20285
* remove debugging codeChris Lattner2004-11-181-5/+3
| | | | llvm-svn: 17962
* Make this code not depend on LinkModules leaving the second argument unmolested.Chris Lattner2004-11-161-1/+10
| | | | llvm-svn: 17874
* 'Pass' should now not be derived from by clients. Instead, they should deriveChris Lattner2004-09-201-3/+3
| | | | | | | from ModulePass. Instead of implementing Pass::run, then should implement ModulePass::runOnModule. llvm-svn: 16436
* Changes For Bug 352Reid Spencer2004-09-011-3/+3
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* If the block extractor fails, actually emit the bc file that failed to extractChris Lattner2004-08-121-1/+5
| | | | llvm-svn: 15675
* These files don't need to include <iostream> since they include ↵Brian Gaeke2004-07-211-1/+0
| | | | | | "Support/Debug.h". llvm-svn: 15089
* Add #include <iostream> since Value.h does not include it any more.Reid Spencer2004-07-041-0/+1
| | | | llvm-svn: 14623
* Implement basic block extraction for the miscompilation debugger. This ↵Chris Lattner2004-05-111-0/+67
| | | | | | | | | | | | | | | | still needs two things: the FIXME in ExtractBlocks needs to be implemented, and the basic block extractor itself needs to have enough bugs fixed for this to be more or less useful. Until the time that this is generally useful, it is hidden behind the new bugpoint -enable-block-extraction option. I hope to get the FIXME done tonight. Also of note, this patch adds a -extract-bbs option to bugpoint which can be used to debug the block extractor. (hint hint Misha :) llvm-svn: 13471
* Minor speedupChris Lattner2004-04-021-10/+5
| | | | llvm-svn: 12612
* Fix a fairly nasty bug that prevented bugpoint from working quite right whenChris Lattner2004-04-021-1/+3
| | | | | | hacking on programs with two functions that have the same name. llvm-svn: 12604
* Fix an inverted condition that causes us to think that loop extractionChris Lattner2004-03-171-1/+1
| | | | | | accomplished something when it really did not. This does not fix the bigger problem tho. llvm-svn: 12469
* After reducing a miscompiled program down to the functions which are beingChris Lattner2004-03-141-1/+5
| | | | | | | | | miscompiled, try to use the loop extractor to reduce the program down to a loop nest that is being miscompiled. In practice, the loop extractor appears to have too many bugs for this to be useful, but hopefully they will be fixed soon... llvm-svn: 12398
* Refactor to use a new methodChris Lattner2004-03-141-39/+15
| | | | llvm-svn: 12395
* Refactor and clean up a bunch more code. No major functionality changes.Chris Lattner2004-03-141-2/+4
| | | | | | | | | | | | | | * Make several methods of bugdriver global functions (ParseInputFile, PrintFunctionList) * Make PrintFunctionList truncate the output after 10 entries, like the crash debugger did. This allows code sharing. * Add a couple of methods to BugDriver that allows us to eliminate some friends * Improve comments in ExtractFunction.cpp * Make classes that used to be friends up bugdriver now live in anon namespaces * Rip a bunch of functionality in the miscompilation tester into a new TestMergedProgram function for future code sharing. * Fix a bug in the miscompilation tester induced in my last checkin llvm-svn: 12393
* Add a method to extract a loopChris Lattner2004-03-141-1/+37
| | | | llvm-svn: 12391
* add a fixmeChris Lattner2004-03-141-0/+5
| | | | llvm-svn: 12388
* Refactor all of the "splitting a module into two pieces" code to avoidChris Lattner2004-03-141-0/+50
| | | | | | | code duplication. Also, don't use ReduceMiscompilingFunctions::TestFuncs to print out the final message. llvm-svn: 12387
* Fix the "infinite looping unless you disable adce" bugChris Lattner2004-03-131-6/+0
| | | | | | Also remove an option to disable adce :) llvm-svn: 12359
* Make more stuff public. Make the instruction argument toChris Lattner2004-02-181-10/+11
| | | | | | deleteInstructionFromProgram be const llvm-svn: 11606
* Do not leave a bunch of crud lying aroundChris Lattner2003-12-071-0/+2
| | | | llvm-svn: 10307
* Do not DESTROY programs by default. No wonder bugpoint was not being useful ↵Chris Lattner2003-11-231-11/+7
| | | | | | all this time! llvm-svn: 10175
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+11
| | | | llvm-svn: 9903
* I hate it when bugpoint is all ready to give me a bytecode file, then crashesChris Lattner2003-11-051-20/+30
| | | | | | | | | | | in final cleanups. Then you had to run the whole mess again with -disable-final-cleanups. This makes bugpoint run the cleanups in a protected environment so that if they crash, bugpoint itself doesn't crash. This makes things much happier, implements a FIXME, and gets rid of YABPO (yet another bugpoint option). llvm-svn: 9743
* Simplify the performFinalCleanups interfaceChris Lattner2003-11-051-6/+3
| | | | llvm-svn: 9740
* Fix an assertion failure in BugpointChris Lattner2003-10-231-0/+6
| | | | llvm-svn: 9406
* fix file headersChris Lattner2003-10-201-1/+0
| | | | llvm-svn: 9293
* Added copyright header to all C++ source files.John Criswell2003-10-201-0/+8
| | | | llvm-svn: 9291
* Check in the fix I meant to apply here, but mistakenly applied toBrian Gaeke2003-09-101-0/+1
| | | | | | tools/extract instead..... heh llvm-svn: 8464
* Re-grouped and alphabetized headers for easier reading and cleaner style.Misha Brukman2003-08-071-3/+3
| | | | llvm-svn: 7689
* If we're debugging the SimplifyCFG pass, we _REALLY_ don't want to use it forChris Lattner2003-08-051-3/+5
| | | | | | narrowing, no matter what. llvm-svn: 7596
* Parameterize the performFinalCleanups a bitChris Lattner2003-08-011-3/+3
| | | | llvm-svn: 7477
* Run dead arg elimination, and tell it that it's ok to hack up non-internal ↵Chris Lattner2003-06-251-0/+1
| | | | | | functions llvm-svn: 6896
* Allow disabling final cleanupsChris Lattner2003-05-211-1/+11
| | | | llvm-svn: 6271
* Increase odds that this won't bork thingsChris Lattner2003-05-211-0/+5
| | | | llvm-svn: 6267
* Add options to disable simplification with passes, in case one of them crashesChris Lattner2003-04-251-3/+16
| | | | llvm-svn: 5950
* When cleaning up the final bytecode file, make sure to run DTE as wellChris Lattner2003-04-251-1/+2
| | | | llvm-svn: 5917
* Remove dead functionsChris Lattner2003-04-241-28/+1
| | | | llvm-svn: 5913
* Make sure that intermediate code is verifier clean to avoid wierd problems.Chris Lattner2003-03-071-0/+5
| | | | llvm-svn: 5723
* * Reduce the number of useless bytecode files produced by bugpoint.Chris Lattner2003-02-281-0/+13
| | | | | | | - This also speeds it up as the bytecode writer isn't terribly fast. * Add a new cleanup pass after everything else to run -funcresolve -globaldce llvm-svn: 5668
* Make bugpoint *much* more powerful, giving it the capability to delete ↵Chris Lattner2003-01-231-2/+51
| | | | | | | | instructions out of a large function to reduce it. llvm-svn: 5408
* Initial checkin of bugpointChris Lattner2002-11-201-0/+34
llvm-svn: 4789
OpenPOWER on IntegriCloud