This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Fold selects fed by G_PTR_ADD
ClosedPublic

Authored by paquette on Feb 9 2021, 6:09 PM.

Details

Summary

Similar to the case for G_ADD.

There was a function in CTMark/pairlocalalign which was missing this case, causing GlobalISel to emit a add + csel when a csinc is all that is necessary.

https://godbolt.org/z/ax69E9

Minor code size improvements on CTMark at -Os.

Diff Detail

Event Timeline

paquette created this revision.Feb 9 2021, 6:09 PM
paquette requested review of this revision.Feb 9 2021, 6:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 9 2021, 6:09 PM
aemerson accepted this revision.Feb 9 2021, 11:44 PM
This revision is now accepted and ready to land.Feb 9 2021, 11:44 PM
This revision was automatically updated to reflect the committed changes.