This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Lower extending uitofp using tbl.
ClosedPublic

Authored by fhahn on Sep 8 2022, 7:39 AM.

Details

Summary

On AArch64, doing the zero-extend separately first can be lowered more
efficiently using tbl, building on D120571.

https://alive2.llvm.org/ce/z/8Je595

Depends on D120571

Diff Detail

Event Timeline

fhahn created this revision.Sep 8 2022, 7:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2022, 7:39 AM
fhahn requested review of this revision.Sep 8 2022, 7:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2022, 7:39 AM
t.p.northover added inline comments.Sep 15 2022, 1:47 AM
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
13247–13252

Isn't this just DstTy->getInteger()?

fhahn updated this revision to Diff 460395.Sep 15 2022, 6:36 AM

Thanks Tim, I updated the code to use DstTy.

fhahn updated this revision to Diff 460400.Sep 15 2022, 7:28 AM

Add missing return true; which slipped in D133495.

t.p.northover accepted this revision.Sep 16 2022, 1:23 AM

Thanks Tim, I updated the code to use DstTy.

I don't see this change in the most recent diff. Other than that, I don't think this one has any endianness issues so it's probably set to go.

It's a pretty mechanical change so I'll just let you get on with it before pushing.

This revision is now accepted and ready to land.Sep 16 2022, 1:23 AM
This revision was landed with ongoing or failed builds.Sep 16 2022, 2:21 AM
This revision was automatically updated to reflect the committed changes.
fhahn marked an inline comment as done.Sep 16 2022, 2:23 AM
fhahn added inline comments.
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
13247–13252

Thanks I missed that in the earlier update. Fixed in the committed version.