This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Regbankselect reductions to use FPR bank for scalars.
ClosedPublic

Authored by aemerson on Oct 8 2020, 2:20 PM.

Diff Detail

Event Timeline

aemerson created this revision.Oct 8 2020, 2:20 PM
aemerson updated this revision to Diff 297304.Oct 9 2020, 12:16 PM

Rebase and update.

Might want to add these to isPreISelGenericFloatingPointOpcode while we're here.

llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
895

Slightly simpler:

OpRegBankIdx = {PMI_FirstFPR, PMI_FirstFPR}

902

OpRegBankIdx = {PMI_FirstFPR, PMI_FirstFPR, PMI_FirstFPR}?

llvm/test/CodeGen/AArch64/GlobalISel/regbankselect-reductions.mir
3

Probably don't need -O0

aemerson updated this revision to Diff 297636.Oct 12 2020, 10:39 AM

Address comments.

This revision is now accepted and ready to land.Oct 12 2020, 10:45 AM