This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Fold CSEL x, x, cc -> x
ClosedPublic

Authored by dmgreen on May 1 2021, 1:21 AM.

Details

Summary

This can come up in rare situations, where a csel is created with identical operands. These can be folded simply to the original value, allowing the csel to be removed and further simplification to happen.

This patch also removes FCSEL as it is unused, not being produced anywhere or lowered to anything.

Diff Detail

Event Timeline

dmgreen created this revision.May 1 2021, 1:21 AM
dmgreen requested review of this revision.May 1 2021, 1:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 1 2021, 1:21 AM
jroelofs accepted this revision.May 1 2021, 10:26 AM

nice!

This revision is now accepted and ready to land.May 1 2021, 10:26 AM
This revision was automatically updated to reflect the committed changes.