[all-commits] [llvm/llvm-project] 06f03b: [RISCV][InsertVSETVLI] Check for undef register op...

Philip Reames via All-commits all-commits at lists.llvm.org
Thu Jun 6 13:21:48 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06f03b806a347619f0251220baff56209abe9711
      https://github.com/llvm/llvm-project/commit/06f03b806a347619f0251220baff56209abe9711
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2024-06-06 (Thu, 06 Jun 2024)

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

  Log Message:
  -----------
  [RISCV][InsertVSETVLI] Check for undef register operand directly [nfc]

getVNInfoFromReg is expected to return a nullptr if-and-only-if the
operand is undef.  (This was asserted for.)  Reverse the order of the
checks to simplify an upcoming set of patches.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list