This is an archive of the discontinued LLVM Phabricator instance.

[BPF] Avoid repeating MI->getOperand(NumDefs) x3
ClosedPublic

Authored by tamird on Jul 27 2023, 8:57 AM.

Diff Detail

Event Timeline

tamird created this revision.Jul 27 2023, 8:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2023, 8:57 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
tamird requested review of this revision.Jul 27 2023, 8:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2023, 8:57 AM
tamird updated this revision to Diff 545864.Jul 31 2023, 4:42 PM

Remove brace

tamird added a comment.Aug 1 2023, 1:08 PM

@eddyz87 could you take a look please? I have some other changes that are based on this that can't build until this lands.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 2 2023, 7:56 AM
This revision was automatically updated to reflect the committed changes.

In my opinion, whether or not to repeat MI->getOperand(NumDefs) is a matter of personal preference in this case. Current code is ok and this change does not change any related functionality. I suggest to withheld from this change to avoid cluttering commit history.

Also, I don't understand why you landed this change w/o due process.

tamird added a comment.Aug 2 2023, 8:52 AM

In my opinion, whether or not to repeat MI->getOperand(NumDefs) is a matter of personal preference in this case. Current code is ok and this change does not change any related functionality. I suggest to withheld from this change to avoid cluttering commit history.

I seems obvious that readability of code-at-HEAD should be of a higher priority than the readability of the commit history; the extant code will be read many more times than the the commit history for the same piece of code.

The description of this change doesn't claim that there is a change in behavior here; is there documentation that requires all changes to have functional changes?

Also, I don't understand why you landed this change w/o due process.

As I understand it, the process is not prescriptive about reviews being required. I see many changes (particularly in this area) that have gone in without review. In this case, I tried to follow "due process", but received no engagement whatsoever. Is filibustering an accepted practice?

In my opinion, whether or not to repeat MI->getOperand(NumDefs) is a matter of personal preference in this case. Current code is ok and this change does not change any related functionality. I suggest to withheld from this change to avoid cluttering commit history.

I seems obvious that readability of code-at-HEAD should be of a higher priority than the readability of the commit history; the extant code will be read many more times than the the commit history for the same piece of code.

I disagree that readability of these 2 lines had improved. I see this commit is an unnecessary code shuffling.

The description of this change doesn't claim that there is a change in behavior here; is there documentation that requires all changes to have functional changes?

Also, I don't understand why you landed this change w/o due process.

As I understand it, the process is not prescriptive about reviews being required. I see many changes (particularly in this area) that have gone in without review. In this case, I tried to follow "due process", but received no engagement whatsoever. Is filibustering an accepted practice?

Personally, I wait for reviewers engagements for all my changes.