[all-commits] [llvm/llvm-project] 673289: [RISCV] Use analyzeBranch in RISCVRedundantCopyEli...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Aug 29 09:06:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6732896bbf0c525d79fbfef7b4b23ef0a56f7862
      https://github.com/llvm/llvm-project/commit/6732896bbf0c525d79fbfef7b4b23ef0a56f7862
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-08-29 (Mon, 29 Aug 2022)

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

  Log Message:
  -----------
  [RISCV] Use analyzeBranch in RISCVRedundantCopyElimination.

The existing code was incorrect if we had more than one conditional
branch instruction in a basic block. Though I don't think that will
occur, using analyzeBranch detects that as an unsupported case.

Overall this results in simpler code in RISCVRedundantCopyElimination.

Reviewed By: reames, kito-cheng

Differential Revision: https://reviews.llvm.org/D132347




More information about the All-commits mailing list