[llvm] [LoongArch] Support bswap for LSX/LASX VTs (PR #114171)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 31 05:14:52 PDT 2024
================
@@ -269,6 +269,9 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
{ISD::SETNE, ISD::SETGE, ISD::SETGT, ISD::SETUGE, ISD::SETUGT}, VT,
Expand);
}
+ for (MVT VT : {MVT::v8i16, MVT::v4i32, MVT::v2i64}) {
+ setOperationAction(ISD::BSWAP, VT, Legal);
+ }
----------------
heiher wrote:
Remove braces.
https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements
https://github.com/llvm/llvm-project/pull/114171
More information about the llvm-commits
mailing list