This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] TBL uses zero for out of range elements.
ClosedPublic

Authored by dmgreen on Mar 7 2022, 10:33 AM.

Details

Summary

A TBL instruction will use zero for any out of range values. We can use this in GenerateTBL to help turn a TBL2 into a TBL1, avoiding the need to materialise the zero.

Diff Detail

Event Timeline

dmgreen created this revision.Mar 7 2022, 10:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2022, 10:33 AM
dmgreen requested review of this revision.Mar 7 2022, 10:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2022, 10:33 AM
samtebbs accepted this revision.Mar 9 2022, 2:29 AM

LGTM

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
9775–9777

if -> is

This revision is now accepted and ready to land.Mar 9 2022, 2:29 AM
This revision was landed with ongoing or failed builds.Mar 10 2022, 6:45 AM
This revision was automatically updated to reflect the committed changes.