[PATCH] D95756: [RISCV][LegalizeTypes] Try to expand BSWAP before promoting if the promoted BSWAP would expand anyway.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 31 02:54:35 PST 2021


RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/include/llvm/CodeGen/TargetLowering.h:4400
+  /// Expand BSWAPxa nodes. Expands scalar BSWAP nodes. Returns SDValue()
+  /// if expand fails.
+  /// \param N Node to expand
----------------
IIRC we handle vector nodes as well? we handle any i16/i32/i64 scalar/vector case - so maybe say something like that?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95756/new/

https://reviews.llvm.org/D95756



More information about the llvm-commits mailing list