[all-commits] [llvm/llvm-project] dfb8d6: [RegAlloc] consider urgent evict in evictInterfere...

Piyou Chen via All-commits all-commits at lists.llvm.org
Tue May 5 21:24:02 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfb8d68fd1997d1e386eaebdcc336d717daadc45
      https://github.com/llvm/llvm-project/commit/dfb8d68fd1997d1e386eaebdcc336d717daadc45
  Author: Piyou Chen <piyou.chen at sifive.com>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    M llvm/include/llvm/CodeGen/RegAllocEvictionAdvisor.h
    M llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
    M llvm/lib/CodeGen/RegAllocGreedy.cpp
    A llvm/test/CodeGen/RISCV/regalloc-greedy-urgent-evict.ll

  Log Message:
  -----------
  [RegAlloc] consider urgent evict in evictInterference (#192631)

This assertion causes a crash in programs with high register pressure
when inline assembly is used.

```
    assert((ExtraInfo->getCascade(Intf->reg()) < Cascade ||
            VirtReg.isSpillable() < Intf->isSpillable()) &&
           "Cannot decrease cascade number, illegal eviction");
```

It should account for the case where an urgent eviction may result in
cascade being less than `ExtraInfo->getCascade(Intf->reg())`

---------

Co-authored-by: Matt Arsenault <arsenm2 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list