This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Don't combine smul of i1 type constant one
ClosedPublic

Authored by StephenFan on Jan 7 2023, 10:45 PM.

Diff Detail

Event Timeline

StephenFan created this revision.Jan 7 2023, 10:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 7 2023, 10:45 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
StephenFan requested review of this revision.Jan 7 2023, 10:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 7 2023, 10:45 PM
craig.topper added inline comments.
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
4997–4998

What about i1 vectors?

spatel added a comment.Jan 9 2023, 7:36 AM

I added tests similar to what is here and more with:
fc9d54a4a131c
...because there was another missing piece that should be fixed with:
2dcbd740eee0

But we still need a patch like this. Please rebase/update.

Rebase and handle i1 vectors.

This revision is now accepted and ready to land.Jan 14 2023, 12:24 AM
This revision was landed with ongoing or failed builds.Jan 17 2023, 6:05 AM
This revision was automatically updated to reflect the committed changes.