[llvm-commits] [patch] Fix bugpoint -inline ....

Rafael Espindola espindola at google.com
Sun Jul 25 17:21:00 PDT 2010

> Do you want to use a SmallVector here?

It is passed to a function and I wanted to avoid changing the
interface. I implemented the other suggestions.

The attached patch does a similar thing to the block reduction logic.
With it bugpoint can run without crashing on the testcase I am trying
to reduce.

I did noticed another less serious problem with bugpoint that I might
try to fix in another patch: When splitting the module into two parts,
it will copy the functions it wants to optimize. When doing that it
changes internal functions into regular ones and this sometimes masks
the bug.

For example, say a module has f1, f2 and f3. f2 is internal and the
bug can be reproduced with only f1 and f2 but is masked if f2 is not
internal. Bugpoint will fail to remove f3.

Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bugpoint.patch
Type: text/x-patch
Size: 2011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100725/ee77f2b6/attachment.bin>

More information about the llvm-commits mailing list