This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] fold more constant remainder to select-of-constants remainder
ClosedPublic

Authored by Miss_Grape on Apr 11 2022, 12:37 AM.

Diff Detail

Event Timeline

Miss_Grape created this revision.Apr 11 2022, 12:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2022, 12:37 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Miss_Grape requested review of this revision.Apr 11 2022, 12:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2022, 12:37 AM
xbolva00 added inline comments.
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
1431

/*FoldWithMultiUse=*/true

Miss_Grape marked an inline comment as done.
spatel added a subscriber: Chenbing.Zheng.

This looks like a simple extension of D122967 - cc @Chenbing.Zheng in case this was not included in the first patch for some other reason.

This looks like a simple extension of D122967 - cc @Chenbing.Zheng in case this was not included in the first patch for some other reason.

Just i didn't see this todo in rem.ll. This look good to me.

spatel accepted this revision.Apr 11 2022, 1:31 PM

LGTM

This revision is now accepted and ready to land.Apr 11 2022, 1:31 PM
This revision was landed with ongoing or failed builds.Apr 11 2022, 6:41 PM
This revision was automatically updated to reflect the committed changes.