[all-commits] [llvm/llvm-project] 3adf82: [CodeGen][test] Pre-commit test for D131863

Piggy via All-commits all-commits at lists.llvm.org
Thu Dec 1 10:44:05 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3adf828a0e96ea18531fe74fa151fa8c087e5a21
      https://github.com/llvm/llvm-project/commit/3adf828a0e96ea18531fe74fa151fa8c087e5a21
  Author: ZHU Zijia <piggynl at outlook.com>
  Date:   2022-12-02 (Fri, 02 Dec 2022)

  Changed paths:
    M llvm/test/CodeGen/RISCV/branch-relaxation.ll

  Log Message:
  -----------
  [CodeGen][test] Pre-commit test for D131863

Reviewed By: arsenm

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


  Commit: 010a8f7a90bf6e6d77f07f0a02dd8a63dfeb32da
      https://github.com/llvm/llvm-project/commit/010a8f7a90bf6e6d77f07f0a02dd8a63dfeb32da
  Author: ZHU Zijia <piggynl at outlook.com>
  Date:   2022-12-02 (Fri, 02 Dec 2022)

  Changed paths:
    M llvm/lib/CodeGen/BranchRelaxation.cpp
    M llvm/test/CodeGen/RISCV/branch-relaxation.ll

  Log Message:
  -----------
  [CodeGen] Fix restore blocks' BasicBlock information in branch relaxation

In branch relaxation pass, restore blocks are created and placed before
the jump destination if indirect branches are required. For example:

        foo
        sd      s11, 0(sp)
        jump    .restore, s11
        bar
        bar
        bar
        j       .dest
.restore:
        ld      s11, 0(sp)
.dest:
        baz

The BasicBlock information of the restore MachineBasicBlock should be
identical to the dest MachineBasicBlock.

Reviewed By: arsenm

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


Compare: https://github.com/llvm/llvm-project/compare/9b83935672cf...010a8f7a90bf


More information about the All-commits mailing list