New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance bugpoint to reduce global initializers #1332
Comments
I have a potential patch for this (it compiles! Ship it!). Is there a test case that I can use to verify this -bw |
I'd suggest going into lib/CodeGen/AsmPrinter.cpp. In the assert(CV->isNullValue()); you just inserted a 'bug'. Recompile llc, then use: bugpoint -run-llc myprogram.bc Which should reduce it down to just one global that has a non-zero initializer. -Chris |
Putting that line in didn't work. Bugpoint didn't even execute that method. :-( -bw |
Right, bugpoint doesn't run the code generator. however, it should fork off llc, which should. Make sure you have a complex-enough .bc file, and use bugpoint -run-llc. |
I did run it with -run-llc, but nothing. I thought that the file was complex enough. Anyway, Domagoj -bw |
Isn't this done, if so, shouldn't it be closed? -Chris |
Good point. Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061023/039047.html |
Extended Description
It would be wonderful if someone would enhance bugpoint to prune down the list of global var initializers
when some are required to provoke a compiler crash. Domagoj Babic produced a patch that does exactly
this:
http://lists.cs.uiuc.edu/pipermail/llvmbugs/2006-October/002004.html
... but his patch does not use the list reducer. It would be great if someone could pick this up and finish
it.
-Chris
The text was updated successfully, but these errors were encountered: