[all-commits] [llvm/llvm-project] 859745: [regalloc] Fix assertion error when LiveInterval i...

Wang Pengcheng via All-commits all-commits at lists.llvm.org
Tue Jan 25 22:08:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8597458278027047c06a1a81579893335e761a33
      https://github.com/llvm/llvm-project/commit/8597458278027047c06a1a81579893335e761a33
  Author: wangpc <pc.wang at linux.alibaba.com>
  Date:   2022-01-26 (Wed, 26 Jan 2022)

  Changed paths:
    M llvm/lib/CodeGen/LiveIntervals.cpp
    M llvm/lib/CodeGen/RegAllocGreedy.cpp

  Log Message:
  -----------
  [regalloc] Fix assertion error when LiveInterval is empty

When evicting interference, it causes an asseertion error
since LiveIntervals::intervalIsInOneMBB assumes that input
is not empty.

This patch fixed bug mentioned in D118020.

Reviewed By: MatzeB

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




More information about the All-commits mailing list