First Last Prev Next    No search results available
Details
: [bugpoint] Add ability to remove individual BasicBlocks f...
Bug#: 327
: tools
: bugpoint
Status: RESOLVED
Resolution: FIXED
: All
: All
: 1.0
: P2
: enhancement
: 1.3

:
: new-feature
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Misha Brukman <brukman+bugs@uiuc.edu>
Assigned To: Unassigned LLVM Bugs <unassignedbugs@nondot.org>
:

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2004-04-21 14:38
While bugpoint helps narrowing down a miscompiling test case down to a single
function, even sometimes to a single loop (or removes unnecessary loops from a
function), at times it leaves around a complex CFG with many instructions.

What would be nice to have is the ability for bugpoint to use the CodeExtractor
facility to remove a block at a time into a new function. Note that the downside
is that it may not always replicate the problem, as straight-line code then has
the additional call + register saves, and the callee code has register restores,
etc. This may mask the problem, but in many cases BEFORE and AFTER the affected
region, it may delete substantial amounts of code.
------- Comment #1 From Chris Lattner 2004-04-21 14:40:42 -------
Note that the code extractor will probably be improved to handle this.  I
believe that it adds the  switch and dispatch blocks unconditionally right now.
 If extracting a single basic block, we would want the callee side of the code
to be a simple as possible...

-Chris
------- Comment #2 From Chris Lattner 2004-05-24 00:28:32 -------
Oh yeah, I forgot there was a bug for this.  This has been implemented for a
while now.

-Chris

First Last Prev Next    No search results available