[llvm] [AArch64] When lowering 16 bit vector bitcasts, convert to i16. (PR #178249)
Cullen Rhodes via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 30 03:04:21 PST 2026
================
@@ -5594,10 +5594,17 @@ SDValue AArch64TargetLowering::LowerBITCAST(SDValue Op,
if (ArgVT == MVT::f16 || ArgVT == MVT::bf16)
return Op;
+ SDValue Src = Op.getOperand(0);
+ if (ArgVT.isVector() && ArgVT.getSizeInBits() == 16) {
+ SDLoc DL(Op);
----------------
c-rhodes wrote:
nit: I'd move this above so it can be reused below
https://github.com/llvm/llvm-project/pull/178249
More information about the llvm-commits
mailing list