X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FBugpoint.html;h=0f5a511f71cbbe9217f85c62250569846fe94d11;hb=d06c59821a1ca0191ea8a326a18509808a02ed03;hp=4bcf9977d56d124207dee0c00ccff78a60525695;hpb=82681661acd4a413cef45a519bdeb0827cf832a2;p=oota-llvm.git diff --git a/docs/Bugpoint.html b/docs/Bugpoint.html index 4bcf9977d56..0f5a511f71c 100644 --- a/docs/Bugpoint.html +++ b/docs/Bugpoint.html @@ -38,13 +38,13 @@ passes. It can be used to debug three types of failures: optimizer crashes, miscompilations by optimizers, or bad native code generation (including problems in the static and JIT compilers). It aims to reduce large test cases to small, -useful ones. For example, if gccas crashes while optimizing a +useful ones. For example, if opt crashes while optimizing a file, it will identify the optimization (or combination of optimizations) that causes the crash, and reduce the file down to a small example which triggers the crash.

-

For detailed case scenarios, such as debugging gccas, -gccld, or one of the LLVM code generators, see For detailed case scenarios, such as debugging opt, +llvm-ld, or one of the LLVM code generators, see How To Submit a Bug Report document.

@@ -114,7 +114,7 @@ Otherwise, there is no problem bugpoint can debug.

as it can to reduce the list of passes (for optimizer crashes) and the size of the test program. First, bugpoint figures out which combination of optimizer passes triggers the bug. This is useful when debugging a problem -exposed by gccas, for example, because it runs over 38 passes.

+exposed by opt, for example, because it runs over 38 passes.

Next, bugpoint tries removing functions from the test program, to reduce its size. Usually it is able to reduce a test program to a single @@ -123,8 +123,8 @@ functions has been reduced, it attempts to delete various edges in the control flow graph, to reduce the size of the function as much as possible. Finally, bugpoint deletes any individual LLVM instructions whose absence does not eliminate the failure. At the end, bugpoint should tell you what -passes crash, give you a bytecode file, and give you instructions on how to -reproduce the failure with opt, analyze, or llc.

+passes crash, give you a bitcode file, and give you instructions on how to +reproduce the failure with opt or llc.

@@ -141,7 +141,7 @@ test program and partitions it into two pieces: one piece which it compiles with the C backend (into a shared object), and one piece which it runs with either the JIT or the static LLC compiler. It uses several techniques to reduce the amount of code pushed through the LLVM code generator, to reduce the -potential scope of the problem. After it is finished, it emits two bytecode +potential scope of the problem. After it is finished, it emits two bitcode files (called "test" [to be compiled with the code generator] and "safe" [to be compiled with the C backend], respectively), and instructions for reproducing the problem. The code generator debugger assumes that the C backend produces @@ -211,15 +211,10 @@ non-obvious ways. Here are some hints and tips:

you might try llvm-link -v on the same set of input files. If that also crashes, you may be experiencing a linker bug. -

  • If your program is supposed to crash, bugpoint will be - confused. One way to deal with this is to cause bugpoint to ignore the exit - code from your program, by giving it the -check-exit-code=false - option. -
  • bugpoint is useful for proactively finding bugs in LLVM. Invoking bugpoint with the -find-bugs option will cause the list of specified optimizations to be randomized and applied to the - program. This process will repeat until an error occurs or the user + program. This process will repeat until a bug is found or the user kills bugpoint. @@ -231,9 +226,9 @@ non-obvious ways. Here are some hints and tips:


    Valid CSS! + src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"> Valid HTML 4.01! + src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"> Chris Lattner
    LLVM Compiler Infrastructure