[all-commits] [llvm/llvm-project] a8a7bf: [mlgo][regalloc] Fix register masking

Mircea Trofin via All-commits all-commits at lists.llvm.org
Sun Jan 30 14:59:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8a7bf922cea8af01168f7a4adf4ed0365bcc2b4
      https://github.com/llvm/llvm-project/commit/a8a7bf922cea8af01168f7a4adf4ed0365bcc2b4
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2022-01-30 (Sun, 30 Jan 2022)

  Changed paths:
    M llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp

  Log Message:
  -----------
  [mlgo][regalloc] Fix register masking

If AllocationOrder has less than 32 elements, we were treating the extra
positions as if they were valid. This was detected by a subsequent
assert. The fix also tightens the asserts.




More information about the All-commits mailing list