This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Select to CCMN when the CCMP's second operator is negative constant
ClosedPublic

Authored by bcl5980 on Oct 13 2022, 9:12 PM.

Details

Summary

CCMP/CCMN's second operator support const from 0 to 31. When the CCMP's second operator is in the range [-31, -1] we can replace it with CCMN to avoid extra mov.

Fix: #57034

Diff Detail

Event Timeline

bcl5980 created this revision.Oct 13 2022, 9:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 9:12 PM
bcl5980 requested review of this revision.Oct 13 2022, 9:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 9:12 PM
bcl5980 updated this revision to Diff 467679.Oct 13 2022, 9:16 PM

remove fixme

This revision is now accepted and ready to land.Oct 13 2022, 9:39 PM
This revision was landed with ongoing or failed builds.Oct 14 2022, 6:41 AM
This revision was automatically updated to reflect the committed changes.