[llvm] [GlobalISel][AArch64] Legalize G_FABS and G_FNEG for SVE (PR #114784)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 13:18:07 PST 2024


Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/114784 at github.com>


topperc wrote:

> My favourite weapon: ` ag fneg llvm/lib/Target/AArch64/*.td`. There are scalar and Neon patterns, but no SVE patterns.
> 
> No. This PR has ` .legalFor(HasSVE, {nxv2s64, nxv4s32, nxv8s16})` plus patterns.

Do you plan to support fixed vectors using SVE like SelectionDAG does? As I understand it, the SDAG code is written the way it is to share the same isel patterns for scalable vector and fixed vectors.

https://github.com/llvm/llvm-project/pull/114784


More information about the llvm-commits mailing list