[llvm] [LLVM][AArch64] Improve big endian code generation for SVE BITCASTs. (PR #104769)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 19 10:04:21 PDT 2024
================
@@ -6140,6 +6140,8 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
break;
case ISD::BSWAP:
assert(VT.isInteger() && VT == N1.getValueType() && "Invalid BSWAP!");
+ if (VT.getScalarSizeInBits() == 8)
+ return N1;
----------------
efriedma-quic wrote:
The scalarsize % 16 assumption is global throughout LLVM; I'd prefer not to add an exception if we don't need one.
https://github.com/llvm/llvm-project/pull/104769
More information about the llvm-commits
mailing list