This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] computeKnownBits / ComputeNumSignBits for the remaining overflow-aware nodes
ClosedPublic

Authored by barannikov88 on Jul 1 2022, 4:40 PM.

Details

Summary

Some overflow-aware nodes were missing from the switches in
computeKnownBits and ComputeNumSignBits.

Diff Detail

Event Timeline

barannikov88 created this revision.Jul 1 2022, 4:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2022, 4:40 PM
barannikov88 requested review of this revision.Jul 1 2022, 4:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2022, 4:40 PM
bjope accepted this revision.Jul 4 2022, 1:18 AM

LGTM!

This revision is now accepted and ready to land.Jul 4 2022, 1:18 AM

This is my first patch. I would really appreciate it if someone could guide me through the process of contribution.
What do I do next once the patch is approved by the reviewers (e.g. is there a way I can merge it myself or will it be merged automatically / by some other person)? How many approvals do I need? Is there some kind of CODEOWNERS whose approve is mandatory?
I have read https://llvm.org/docs/Contributing.html but it does not answer all questions, so any additional information would be helpful.

It seems I don't have permission to land the patch. Could someone do this please?

I also see a build bot failure, but the error seems unrelated:
https://buildkite.com/llvm-project/premerge-checks/builds/101001#0181cec4-b429-490e-8703-f179f25541b2/6-12053

Failed Tests (1):
  BOLT :: runtime/X86/user-func-reorder.c

Is it OK or should I look into it?

foad added a comment.Jul 7 2022, 1:17 AM

This is my first patch. I would really appreciate it if someone could guide me through the process of contribution.
What do I do next once the patch is approved by the reviewers (e.g. is there a way I can merge it myself or will it be merged automatically / by some other person)?

For your first few patches you can ask someone else to do it. Then you should apply for commit access.

How many approvals do I need?

Usually one approval is enough, unless some other reviewer is still unhappy with the patch.

Is there some kind of CODEOWNERS whose approve is mandatory?

No. There is an llvm CODE_OWNERS.TXT but the people listed there are supposed to be responsible for ensuring that patches to a particular part of the compiler get reviewed. They are not mandatory reviewers for every single patch themselves.

I have read https://llvm.org/docs/Contributing.html but it does not answer all questions, so any additional information would be helpful.

There are also other docs linked from https://llvm.org/docs/GettingInvolved.html like the Developer Policy and the Code-Review Policy.

It seems I don't have permission to land the patch. Could someone do this please?

Yes I can do it. What is your preferred name and email address for the Author: header? (Or do you have an existing github account with some commits I can copy it from?)

I also see a build bot failure, but the error seems unrelated:
https://buildkite.com/llvm-project/premerge-checks/builds/101001#0181cec4-b429-490e-8703-f179f25541b2/6-12053

Failed Tests (1):
  BOLT :: runtime/X86/user-func-reorder.c

Is it OK or should I look into it?

If you're reasonably sure it's unrelated then I guess it's OK to ignore it. I'm not even sure how to run the BOLT tests. I don't think they are part of check-llvm.

barannikov88 added a comment.EditedJul 7 2022, 10:37 AM

There are also other docs linked from https://llvm.org/docs/GettingInvolved.html like the Developer Policy and the Code-Review Policy.

Thanks, that is a lot of information to get acquainted with

Yes I can do it. What is your preferred name and email address for the Author: header? (Or do you have an existing github account with some commits I can copy it from?)

Sergei Barannikov <barannikov88@gmail.com>

For your first few patches you can ask someone else to do it. Then you should apply for commit access.

How can I apply for the access?

foad added a comment.Jul 8 2022, 1:02 AM

There are also other docs linked from https://llvm.org/docs/GettingInvolved.html like the Developer Policy and the Code-Review Policy.

Thanks, that is a lot of information to get acquainted with

Yes :-/

For your first few patches you can ask someone else to do it. Then you should apply for commit access.

How can I apply for the access?

https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access

OK, I'll do it after submitting a few patches. Thank you for your time

foad closed this revision.Jul 8 2022, 1:23 AM

2247fdc84d74d267b7d82a4103aa60b28065f62a

I forgot to manually add the Differential Revision: header to the log message, sigh.