This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Fold series of instructions into mull for more types
ClosedPublic

Authored by Allen on Oct 24 2022, 10:06 PM.

Diff Detail

Event Timeline

Allen created this revision.Oct 24 2022, 10:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2022, 10:06 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
Allen requested review of this revision.Oct 24 2022, 10:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2022, 10:06 PM
chfast requested changes to this revision.Oct 25 2022, 12:05 AM
chfast added inline comments.
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
1275
llvm/test/Transforms/InstCombine/mul_full_64.ll
451

There is typo in the link: last instruction should be add not and. https://alive2.llvm.org/ce/z/y26zaW
Please update the comment to TODO if we don't plan to match the or pattern right now.

This revision now requires changes to proceed.Oct 25 2022, 12:05 AM
Allen updated this revision to Diff 470408.Oct 25 2022, 1:35 AM

update the comment with TODO

Allen marked an inline comment as done.Oct 25 2022, 1:45 AM
Allen added inline comments.
llvm/test/Transforms/InstCombine/mul_full_64.ll
451

Done, thanks for your rectifying

chfast accepted this revision.Oct 25 2022, 2:18 AM

LGTM, but I'd wait for one more review.

This revision is now accepted and ready to land.Oct 25 2022, 2:18 AM
spatel accepted this revision.Oct 25 2022, 5:46 AM

LGTM

This revision was landed with ongoing or failed builds.Oct 25 2022, 8:05 AM
This revision was automatically updated to reflect the committed changes.
Allen marked an inline comment as done.