Skip to content
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

teach souper about data flow fact isKnownNegative #247

Merged
merged 1 commit into from Mar 23, 2017

Conversation

jubitaneja
Copy link
Contributor

This is represented as: var (-)

@regehr
Copy link
Collaborator

regehr commented Mar 6, 2017

Jubi I think we want the flags to be symmetrical. That is, we don't want Negative and NonNegative. Rather, we want NonNegative and NonPositive.

@regehr
Copy link
Collaborator

regehr commented Mar 6, 2017

Then NonNegative + NonZero = Positive and NonPositive + NonZero = Negative

@jubitaneja
Copy link
Contributor Author

In my knowledge, there is no data flow function in LLVM to determine non-positive so far. If you want we can implement our own function, may be?

@jubitaneja
Copy link
Contributor Author

I agree it will be good to have symmetrical flags actually. Since I didn't find non-positive, I thought it will be good enough to add an extra flag.

@regehr
Copy link
Collaborator

regehr commented Mar 7, 2017

I see, I thought I saw a non-positive call. Let me think about this a bit more.

@jubitaneja
Copy link
Contributor Author

Sure.

ErrStr = makeErrStr(TP, "repeated '-' flag");
return false;
}
Negative = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation looks a bit messed up here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. The tabs were sitting in Parser.cpp in previous commits too. Hope it looks fine now.

This is represented as: var (-)
@regehr regehr merged commit cf2911d into google:master Mar 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants