This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Split lowerVectorFCMP combine
ClosedPublic

Authored by Pierre-vh on Jul 11 2023, 3:54 AM.

Details

Summary

It's the only combine (AFAIK) that didn't use an apply function.
There is no reason for it to mutate instructions in the matcher, so split it up.

Diff Detail

Event Timeline

Pierre-vh created this revision.Jul 11 2023, 3:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2023, 3:54 AM
Pierre-vh requested review of this revision.Jul 11 2023, 3:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2023, 3:54 AM
arsenm accepted this revision.Jul 11 2023, 4:18 AM
This revision is now accepted and ready to land.Jul 11 2023, 4:18 AM
aemerson accepted this revision.Jul 11 2023, 12:44 PM

LGTM with nit.

llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp
967–986

Could you re-order these into Dst. LHS then RHS. You can use GFCmp here to simplify accessing the regs and predicate.

This revision was automatically updated to reflect the committed changes.
Pierre-vh marked an inline comment as done.