[all-commits] [llvm/llvm-project] 7392b4: [NFC][SimplifyCFG]Precommit test case to show inne...

Mingming Liu via All-commits all-commits at lists.llvm.org
Sun Sep 18 22:51:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7392b4516261bcca29263d88304ce99cc2cde214
      https://github.com/llvm/llvm-project/commit/7392b4516261bcca29263d88304ce99cc2cde214
  Author: Mingming Liu <mingmingl at google.com>
  Date:   2022-09-18 (Sun, 18 Sep 2022)

  Changed paths:
    M llvm/test/Transforms/SimplifyCFG/preserve-llvm-loop-metadata.ll

  Log Message:
  -----------
  [NFC][SimplifyCFG]Precommit test case to show inner-loop metadata may not be preserved

- There is an outer while-loop and an inner for-loop in the test case.
  Inner-loop has `llvm.loop.unroll.enable` metadata that is not
  preserved. This happens around [1], when the loop metadata of outer loop
  overrides the inner loop metadata directly, without looking at whether inner-loop
  itself has loop metadata.

 [1] https://github.com/llvm/llvm-project/blob/ab755e65629ea098cb6faa77b13ac087849ffc67/llvm/lib/Transforms/Utils/Local.cpp#L1146

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




More information about the All-commits mailing list