[all-commits] [llvm/llvm-project] c8b433: [LoopUnswitch] Add test cases with atomic loads & ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Jan 22 07:16:31 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c8b4337911f4b61724fe62518c83cd6919d56b29
      https://github.com/llvm/llvm-project/commit/c8b4337911f4b61724fe62518c83cd6919d56b29
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-01-22 (Fri, 22 Jan 2021)

  Changed paths:
    M llvm/test/Transforms/LoopUnswitch/partial-unswitch.ll

  Log Message:
  -----------
  [LoopUnswitch] Add test cases with atomic loads & call


  Commit: 86991d3231334538cccf6732056cbb641046bd49
      https://github.com/llvm/llvm-project/commit/86991d3231334538cccf6732056cbb641046bd49
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-01-22 (Fri, 22 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
    M llvm/test/Transforms/LoopUnswitch/partial-unswitch.ll

  Log Message:
  -----------
  [LoopUnswitch] Fix logic to avoid unswitching with atomic loads.

The existing code did not deal with atomic loads correctly. Such loads
are represented as MemoryDefs. Bail out on any MemoryAccess that is not
a MemoryUse.


Compare: https://github.com/llvm/llvm-project/compare/87b628dadde0...86991d323133


More information about the All-commits mailing list