This is an archive of the discontinued LLVM Phabricator instance.

Add a utility to reduce GlobalISel tests
ClosedPublic

Authored by volkan on Jan 9 2018, 11:51 AM.

Details

Summary

This patch adds a script to reduce GlobalISel failures using bugpoint.

Diff Detail

Repository
rL LLVM

Event Timeline

volkan created this revision.Jan 9 2018, 11:51 AM

Hi Volkan,

Disclaimer: I have looked at the patch at all.

Could this be extended to reduce any isel related bug?

Cheers,
-Quentin

MatzeB added a subscriber: MatzeB.Jan 9 2018, 2:12 PM

Out of interest: Could you explain what this is doing exactly (as the comment at the beginning of the script isn't too specific about what is happening here)? At a first glance it seems to inject a custom command into bugpoint and checks the output for that "LLVM ERROR:" regex? Or is there something else?

volkan added a comment.Jan 9 2018, 3:06 PM

Hi Volkan,

Disclaimer: I have looked at the patch at all.

Could this be extended to reduce any isel related bug?

Cheers,
-Quentin

Yes, it can be extended to reduce the other ISel problems by adding a regex and the specific arguments for llc.

volkan added a comment.Jan 9 2018, 3:07 PM

Out of interest: Could you explain what this is doing exactly (as the comment at the beginning of the script isn't too specific about what is happening here)? At a first glance it seems to inject a custom command into bugpoint and checks the output for that "LLVM ERROR:" regex? Or is there something else?

That’s correct. It runs llc to get the error message using a regex and creates a custom command to check that specific error. Then, it runs bugpoint with the custom command.

I’ll update the description.

volkan updated this revision to Diff 129170.Jan 9 2018, 3:14 PM

Added a comment about how the script works.

Could this be extended to reduce any isel related bug?

Yes, it can be extended to reduce the other ISel problems by adding a regex and the specific arguments for llc.

I'm guessing the answer is no since you'd have to update the regex as well, but would it make sense to allow llc arguments to be passed through from the command line or something like that?

Could this be extended to reduce any isel related bug?

Yes, it can be extended to reduce the other ISel problems by adding a regex and the specific arguments for llc.

I'm guessing the answer is no since you'd have to update the regex as well, but would it make sense to allow llc arguments to be passed through from the command line or something like that?

I thought we could have a regex, argument list pair for each error type.

Could this be extended to reduce any isel related bug?

Yes, it can be extended to reduce the other ISel problems by adding a regex and the specific arguments for llc.

I'm guessing the answer is no since you'd have to update the regex as well, but would it make sense to allow llc arguments to be passed through from the command line or something like that?

I thought we could have a regex, argument list pair for each error type.

I didn't mean to have my comment hold on this patch. I think it is already an improvement and should push it to take advantage of it now. We can improve things further later as we see fit.

bogner accepted this revision.Jan 23 2018, 11:10 AM

Agreed, it doesn't hurt to have this in as is.

This revision is now accepted and ready to land.Jan 23 2018, 11:10 AM
This revision was automatically updated to reflect the committed changes.