[all-commits] [llvm/llvm-project] 139846: [RISCVGatherScatterLowering] Minor code cleanup [NFC]

Philip Reames via All-commits all-commits at lists.llvm.org
Fri May 12 10:34:06 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 13984608992246e42e66c019f09764650d60af63
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-05-12 (Fri, 12 May 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp

  Log Message:
  [RISCVGatherScatterLowering] Minor code cleanup [NFC]

Use a switch to avoid repeat tests on the opcode, and factor out some common code out of another switch.  (Not all branches had both common bits, but the one which didn't left the values unchanged and their starting value is the respective operand - so storing it back is a nop.)

More information about the All-commits mailing list