[all-commits] [llvm/llvm-project] 6d193b: [NFC][regalloc] Unit test for AllocationOrder iter...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Tue Sep 29 10:48:30 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d193ba3337e40be297c88ff8088d6cade3d5838
      https://github.com/llvm/llvm-project/commit/6d193ba3337e40be297c88ff8088d6cade3d5838
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2020-09-29 (Tue, 29 Sep 2020)

  Changed paths:
    M llvm/lib/CodeGen/AllocationOrder.cpp
    M llvm/lib/CodeGen/AllocationOrder.h
    M llvm/lib/CodeGen/RegAllocBasic.cpp
    M llvm/lib/CodeGen/RegAllocGreedy.cpp
    A llvm/unittests/CodeGen/AllocationOrderTest.cpp
    M llvm/unittests/CodeGen/CMakeLists.txt

  Log Message:
  -----------
  [NFC][regalloc] Unit test for AllocationOrder iteration.

Added unittests. In the process, separated core construction - which just
needs the hits, order, and 'HardHints' values - from construction from
current register allocation state, to simplify testing.

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




More information about the All-commits mailing list