This is an archive of the discontinued LLVM Phabricator instance.

[X86] Remove custom lowering of vXi1 ADD/SUB now that they are canonicalized to XOR in getNode.
ClosedPublic

Authored by craig.topper on Feb 25 2021, 8:33 AM.

Diff Detail

Event Timeline

craig.topper created this revision.Feb 25 2021, 8:33 AM
craig.topper requested review of this revision.Feb 25 2021, 8:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2021, 8:33 AM
RKSimon accepted this revision.Feb 25 2021, 8:51 AM

LGTM

This revision is now accepted and ready to land.Feb 25 2021, 8:51 AM
This revision was landed with ongoing or failed builds.Feb 25 2021, 9:05 AM
This revision was automatically updated to reflect the committed changes.
RKSimon added inline comments.Feb 25 2021, 9:52 AM
llvm/lib/Target/X86/X86ISelLowering.cpp
1475

I've moved the ADD/SUB SAT folds at rG9490b9f14b899ff07f3cfab7ad64e5fed8f48746 - are you OK with me removing these as well?

craig.topper added inline comments.Feb 25 2021, 10:31 AM
llvm/lib/Target/X86/X86ISelLowering.cpp
1475

Yes. What about MUL?