Skip to content

bugpoint should fork/exec opt instead of fork/exec'ing itself to run opt passes #1125

@lattner

Description

@lattner
Bugzilla Link 753
Resolution FIXED
Resolved on Aug 05, 2010 10:26
Version 1.0
OS All

Extended Description

Currently, BugDriver::runPasses exec's bugpoint with a magic argument to run passes, instead of running
opt.

It would be nice if bugpoint was changed to run opt. Because the eventual instructions it prints will use
opt, it knows how to do it already. In most cases there should be no difference. In cases where the
optimizer is nondeterministic or thrashing memory though, it is possible that bugpoint can find a
problem, reduce it, then it may not be reproducible with the opt command line that is printed.

By always using what it will eventually print, bugpoint is more likely to do a useful reduction.

-Chris

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions