In tools/bugpoint/ExtractFunction.cpp:ExtractMappedBlocksFromModule, bugpoint is discarding the "blocks to not extract" list since it's doing a fork+exec to run the block extractor pass. bugpoint used to just fork, so it used to work.
Created attachment 1211 [details] adds a command-line option to block extractor and makes bugpoint use it This proposed patch should improve the situation. This modifies bugpoint to write out the (Function, BasicBlock) names to a file, then passing the name of that file over to the extract basic blocks pass. It isn't perfect, as function and BB names might have spaces, newlines, etc. in them. It'd be cool if that could be fixed by leveraging the .ll parser/printer bits.
Patch looks great to me, please apply!
Applied. The bug for the possible things it won't handle is PR1797.