[all-commits] [llvm/llvm-project] 886d2c: [BranchRelaxation] Simplify offset computation and...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jan 19 16:02:25 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 886d2c2ca75f01b5a094c160aee911a04421dd56
      https://github.com/llvm/llvm-project/commit/886d2c2ca75f01b5a094c160aee911a04421dd56
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-01-19 (Sun, 19 Jan 2020)

  Changed paths:
    M llvm/lib/CodeGen/BranchRelaxation.cpp
    M llvm/test/CodeGen/AArch64/branch-relax-bcc.ll
    M llvm/test/CodeGen/AMDGPU/branch-relaxation.ll

  Log Message:
  -----------
  [BranchRelaxation] Simplify offset computation and fix a bug in adjustBlockOffsets()

If Start!=0, adjustBlockOffsets() may unnecessarily adjust the offset of
Start. There is no correctness issue, but it can create more block
splits.




More information about the All-commits mailing list