[all-commits] [llvm/llvm-project] 3c2203: [RISCV] Use a switch instead of a series of if-cla...

Philip Reames via All-commits all-commits at lists.llvm.org
Wed Oct 25 13:15:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c2203ae03ca8a8cf56691d6f03050ccc2420ff6
      https://github.com/llvm/llvm-project/commit/3c2203ae03ca8a8cf56691d6f03050ccc2420ff6
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-10-25 (Wed, 25 Oct 2023)

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

  Log Message:
  -----------
  [RISCV] Use a switch instead of a series of if-clauses [nfc]

This way the compiler can tell us about missing cases if we add a new value to this enum.




More information about the All-commits mailing list