[all-commits] [llvm/llvm-project] a0f860: [RISCV] Invert an if statement in lowerSELECT to r...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Jan 15 23:21:43 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a0f8602294b0195ce65811d6240f64ad18634a15
      https://github.com/llvm/llvm-project/commit/a0f8602294b0195ce65811d6240f64ad18634a15
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-01-15 (Sun, 15 Jan 2023)

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

  Log Message:
  -----------
  [RISCV] Invert an if statement in lowerSELECT to reduce nesting. NFC

The if body returned at the end and contained more code than what
came after it. Reverse the condition and move the simpler code from
the end of the function into the new if body.




More information about the All-commits mailing list