summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/Miscompilation.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Convert CallInst and InvokeInst APIs to use ArrayRef.Jay Foad2011-07-151-6/+4
| | | | llvm-svn: 135265
* Bugpoint support for miscompilations that result in a crash.Andrew Trick2011-05-111-2/+3
| | | | | | | | | This change allows bugpoint to pinpoint the "opt" pass and bitcode segment responsible for a crash caused by miscompilation. At least it works well for me now, without having to create any custom execution wrappers. llvm-svn: 131186
* Fix whitespace.Michael J. Spencer2011-03-311-13/+13
| | | | llvm-svn: 128631
* Switch FileRemover from PathV1 to V2.Michael J. Spencer2011-03-311-3/+3
| | | | llvm-svn: 128630
* Remove PHINode::reserveOperandSpace(). Instead, add a parameter toJay Foad2011-03-301-2/+1
| | | | | | PHINode::Create() giving the (known or expected) number of operands. llvm-svn: 128537
* (Almost) always call reserveOperandSpace() on newly created PHINodes.Jay Foad2011-03-301-0/+1
| | | | llvm-svn: 128535
* Be more consistent in using ValueToValueMapTy.Rafael Espindola2010-10-131-6/+6
| | | | llvm-svn: 116387
* Most of bugpoint now only needs to know the pass names.Rafael Espindola2010-08-081-5/+5
| | | | llvm-svn: 110534
* Make EmitProgressBitcode const and add a Module argument to runPasses. UseRafael Espindola2010-08-051-3/+6
| | | | | | that argument to simplify runPassesOn. llvm-svn: 110291
* Add const to some methods and change TestMergedProgram to return the mergedRafael Espindola2010-07-311-17/+25
| | | | | | module and take a const BugDriver. llvm-svn: 109951
* Add a Program argument to diffProgram to avoid a use of swapProgramIn.Rafael Espindola2010-07-301-11/+14
| | | | llvm-svn: 109859
* Make the test while reducing blocks functional. This avoids accessing freedRafael Espindola2010-07-291-4/+22
| | | | | | memory when one of the original BB is destroyed. llvm-svn: 109747
* Instead of abusing swapProgramIn, just add a Module argument toRafael Espindola2010-07-281-10/+8
| | | | | | EmitProgressBitcode. llvm-svn: 109602
* Clone and restore the module being reduced inRafael Espindola2010-07-261-6/+27
| | | | | | | | | | | ReduceMiscompilingFunctions::TestFuncs. This makes the test functional (i.e., no side effects). Before we would end up using dead functions if a pass decided to remove them (inline for example) and we would also keep broken functions and conclude that that a single function was enough to reproduce the bug. llvm-svn: 109387
* Speculatively revert r108813, in an attempt to get the self-host buildbots ↵Owen Anderson2010-07-201-5/+5
| | | | | | | | working again. I don't see why this patch would cause them to fail the way they are, but none of the other intervening patches seem likely either. llvm-svn: 108818
* Reapply r108794, a fix for the failing test from last time.Owen Anderson2010-07-201-5/+5
| | | | llvm-svn: 108813
* Revert r108794, "Separate PassInfo into two classes: a constructor-freeDaniel Dunbar2010-07-201-5/+5
| | | | | | | superclass (StaticPassInfo) and a constructor-ful subclass (PassInfo).", it is breaking teh everything. llvm-svn: 108805
* Separate PassInfo into two classes: a constructor-free superclass ↵Owen Anderson2010-07-201-5/+5
| | | | | | (StaticPassInfo) and a constructor-ful subclass (PassInfo). llvm-svn: 108794
* Use ValueMap instead of DenseMap.Devang Patel2010-06-241-18/+18
| | | | | | The ValueMapper used by various cloning utility maps MDNodes also. llvm-svn: 106706
* Save more temps with -save-temps.Rafael Espindola2010-06-211-3/+7
| | | | llvm-svn: 106409
* Use ->isVoidTy().Dan Gohman2010-06-071-1/+1
| | | | llvm-svn: 105550
* Fix PR6951 by fixing Module leaks in bugpoint.Jeffrey Yasskin2010-05-111-7/+7
| | | | llvm-svn: 103523
* The llc -f flag was removed.Nick Lewycky2010-04-291-1/+1
| | | | llvm-svn: 102670
* Boolify.Benjamin Kramer2010-04-121-1/+1
| | | | llvm-svn: 101035
* Remove use of exceptions from bugpoint. No deliberate functionality change!Nick Lewycky2010-04-121-98/+189
| | | | llvm-svn: 101013
* remove obsolete comment.Chris Lattner2010-01-161-5/+2
| | | | llvm-svn: 93661
* bugpoint doesn't need the mangler at all. DisambiguateGlobalSymbolsChris Lattner2010-01-161-25/+5
| | | | | | | | dates to a time when two different LLVM values could have the same name but different types. Simplify it to just assign names to unnamed things and let the core symtab resolve duplicates. llvm-svn: 93660
* switch liblto to use the new getNameWithPrefix() method instead of ↵Chris Lattner2010-01-161-2/+2
| | | | | | getMangledName. llvm-svn: 93643
* Introduce and use convenience methods for getting pointer typesDuncan Sands2009-10-061-2/+2
| | | | | | | where the element is of a basic builtin type. For example, to get an i8* use getInt8PtrTy. llvm-svn: 83379
* Add -output-prefix option to bugpoint (to change the default output name).Daniel Dunbar2009-09-071-4/+8
| | | | llvm-svn: 81154
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-17/+22
| | | | | | | | | | | | | | | | | | forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. llvm-svn: 79869
* Change bugpoint to use Triple to make runtime decisions.Daniel Dunbar2009-08-181-7/+8
| | | | | | | | | - This is cleaner, and makes bugpoint match the host instead of the build architecture. - Patch by Sandeep Patel! llvm-svn: 79309
* Push LLVMContexts through the IntegerType APIs.Owen Anderson2009-08-131-12/+17
| | | | llvm-svn: 78948
* Move a few more APIs back to 2.5 forms. The only remaining ones left to ↵Owen Anderson2009-07-311-3/+1
| | | | | | | | change back are metadata related, which I'm waiting on to avoid conflicting with Devang. llvm-svn: 77721
* Move more code back to 2.5 APIs.Owen Anderson2009-07-301-1/+1
| | | | llvm-svn: 77635
* Move types back to the 2.5 API.Owen Anderson2009-07-291-3/+3
| | | | llvm-svn: 77516
* Move ConstantExpr to 2.5 API.Owen Anderson2009-07-291-1/+1
| | | | llvm-svn: 77494
* Add a bugpoint flag to disable block extraction.David Goodwin2009-07-281-1/+5
| | | | llvm-svn: 77389
* Change ConstantArray to 2.5 API.Owen Anderson2009-07-281-1/+1
| | | | llvm-svn: 77347
* fix testChris Lattner2009-07-191-1/+2
| | | | llvm-svn: 76378
* DisambiguateGlobalSymbols should not mangle intrinsics.Chris Lattner2009-07-191-2/+2
| | | | llvm-svn: 76377
* Convert more tools code from cerr and cout to errs() and outs().Dan Gohman2009-07-161-71/+70
| | | | llvm-svn: 76070
* Use errs() instead of std::cerr.Dan Gohman2009-07-151-39/+40
| | | | llvm-svn: 75791
* eliminate the Mangler::PreserveAsmNames bit, the sole client of thisChris Lattner2009-07-151-5/+10
| | | | | | can do it perfectly well itself. llvm-svn: 75743
* Move EVER MORE stuff over to LLVMContext.Owen Anderson2009-07-141-9/+11
| | | | llvm-svn: 75703
* Reapply my previous asmprinter changes now with more testing and two Chris Lattner2009-07-141-2/+2
| | | | | | | | | | | | | | | | | | | | additional bug fixes: 1. The bug that everyone hit was a problem in the asmprinter where it would remove $stub but keep the L prefix on a name when emitting the indirect symbol. This is easy to fix by keeping the name of the stub and the name of the symbol in a StringMap instead of just keeping a StringSet and trying to reconstruct it late. 2. There was a problem printing the personality function. The current logic to print out the personality function from the DWARF information is a bit of a cesspool right now that duplicates a bunch of other logic in the asm printer. The short version of it is that it depends on emitting both the L and _ prefix for symbols (at least on darwin) and until I can untangle it, it is best to switch the mangler back to emitting both prefixes. llvm-svn: 75646
* Revert r7561{9,8,7,6}, which depend on r75610. Daniel Dunbar2009-07-141-2/+2
| | | | | | | | | | | | | | | | | | --- Reverse-merging r75619 into '.': U lib/Target/DarwinTargetAsmInfo.cpp U lib/CodeGen/AsmPrinter/AsmPrinter.cpp --- Reverse-merging r75618 into '.': U lib/CodeGen/ELFWriter.cpp U lib/CodeGen/MachOCodeEmitter.cpp U lib/CodeGen/MachOWriter.cpp --- Reverse-merging r75617 into '.': U lib/Target/CBackend/CBackend.cpp --- Reverse-merging r75616 into '.': U tools/bugpoint/Miscompilation.cpp U tools/lto/LTOCodeGenerator.cpp U tools/lto/LTOModule.cpp llvm-svn: 75638
* rename getValueName -> getMangledNameChris Lattner2009-07-141-2/+2
| | | | llvm-svn: 75616
* Begin the painful process of tearing apart the rat'ss nest that is ↵Owen Anderson2009-07-131-1/+2
| | | | | | | | | Constants.cpp and ConstantFold.cpp. This involves temporarily hard wiring some parts to use the global context. This isn't ideal, but it's the only way I could figure out to make this process vaguely incremental. llvm-svn: 75445
* Support remote execute for ARM.David Goodwin2009-07-101-2/+2
| | | | llvm-svn: 75292
OpenPOWER on IntegriCloud