[PATCH] bugpoint Enhancement.

Richard Diamond wichard at vitalitystudios.com
Mon Mar 23 10:33:56 PDT 2015


Hi jfb,

This patch adds two flags to `bugpoint`: "-replace-funcs-with-null" and "-dont-reduce-pass-list".

When "-replace-funcs-with-null" is specified, bugpoint will, instead of simply deleting function bodies, replace all uses of functions and then will delete functions completely from the test module, correctly handling aliasing and @llvm.used && @llvm.compiler.used. This part was conceived while trying to debug the PNaCl IR simplification passes, which don't allow undefined functions (ie no declarations).

With "-dont-reduce-pass-list", bugpoint won't try to reduce the set of passes causing the "crash". This is needed in cases where one is trying to debug an issue inside the PNaCl IR simplification passes which is causing an PNaCl ABI verification error, for example.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8555

Files:
  tools/bugpoint/CrashDebugger.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8555.22483.patch
Type: text/x-patch
Size: 4408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150323/9126ff09/attachment.bin>


More information about the llvm-commits mailing list