This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Refactor FoldUDivAction for future usage with multiplication. NFC
Needs ReviewPublic

Authored by danlark on Dec 16 2019, 11:44 AM.

Details

Reviewers
spatel
lebedev.ri
Summary

Refactor FoldUDivAction for future usage with multiplication. NFC

Patch by Danila Kutenin. email:danilak at google.com, github:danlark1@ . I don't have commit rights.

Event Timeline

danlark created this revision.Dec 16 2019, 11:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 16 2019, 11:44 AM
danlark edited the summary of this revision. (Show Details)Dec 16 2019, 11:47 AM
danlark edited the summary of this revision. (Show Details)Dec 16 2019, 11:50 AM

There's a lot of changes in the diff.
Please can you split this into preparatory NFC cleanup, and the actual change?

There's a lot of changes in the diff.
Please can you split this into preparatory NFC cleanup, and the actual change?

Ok

danlark updated this revision to Diff 234128.Dec 16 2019, 1:21 PM

Make the change NFC

danlark updated this revision to Diff 234130.Dec 16 2019, 1:22 PM

Some style

danlark retitled this revision from [InstCombine] `select + mul` -> `select + shl` with power of 2s. to [InstCombine] Refactor FoldUDivAction for future usage with multiplication. NFC.Dec 16 2019, 1:23 PM
danlark edited the summary of this revision. (Show Details)
danlark updated this revision to Diff 234131.Dec 16 2019, 1:27 PM

FoldOperandAction -> OperandFoldAction

There's a lot of changes in the diff.
Please can you split this into preparatory NFC cleanup, and the actual change?

Finally done. PTAL

lebedev.ri accepted this revision.Dec 17 2019, 1:57 PM

LG i guess

llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
196–197

I see that this is only moved, but generally it really just should be an assert().

This revision is now accepted and ready to land.Dec 17 2019, 1:57 PM
lebedev.ri resigned from this revision.Jan 12 2023, 5:42 PM

This review seems to be stuck/dead, consider abandoning if no longer relevant.

This revision now requires review to proceed.Jan 12 2023, 5:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2023, 5:42 PM
Herald added a subscriber: StephenFan. · View Herald Transcript

This review seems to be stuck/dead, consider abandoning if no longer relevant.

You should probably just push this seeing as you accepted it and there's a commit request