[all-commits] [llvm/llvm-project] e5d8fb: [BasicBlockUtils] Add corner case test for loop me...

Hendrik Greving via All-commits all-commits at lists.llvm.org
Mon May 23 16:41:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e5d8fb690e350e5d4d4c807988f04157b2ba4a57
      https://github.com/llvm/llvm-project/commit/e5d8fb690e350e5d4d4c807988f04157b2ba4a57
  Author: Hendrik Greving <hgreving at google.com>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    A llvm/test/Transforms/LoopSimplify/update_latch_md2.ll

  Log Message:
  -----------
  [BasicBlockUtils] Add corner case test for loop metadata.

Adds a test to expose #55416.

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


  Commit: 4f93d5cc1d47c6b54a948712b6181dc55d028c88
      https://github.com/llvm/llvm-project/commit/4f93d5cc1d47c6b54a948712b6181dc55d028c88
  Author: Hendrik Greving <hgreving at google.com>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
    M llvm/test/Transforms/LoopSimplify/update_latch_md2.ll

  Log Message:
  -----------
  [BasicBlockUtils] Do not move loop metadata if outer loop header.

Fixes a bug preventing moving the loop's metadata to an outer loop's header,
which happens if the loop's exit is also the header of an outer loop.

Adjusts test for above.

Fixes #55416.

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


Compare: https://github.com/llvm/llvm-project/compare/994a1841eb30...4f93d5cc1d47


More information about the All-commits mailing list