[all-commits] [llvm/llvm-project] 118997: [SelectionDAGBuilder] Bugfix in visitInlineAsm()

Jonas Paulsson via All-commits all-commits at lists.llvm.org
Mon Sep 6 08:51:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 118997d8e931dcb4c6e972611a7e4febcc33a061
      https://github.com/llvm/llvm-project/commit/118997d8e931dcb4c6e972611a7e4febcc33a061
  Author: Jonas Paulsson <paulsson at linux.vnet.ibm.com>
  Date:   2021-09-06 (Mon, 06 Sep 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    A llvm/test/CodeGen/X86/20210831-inlineasm.ll

  Log Message:
  -----------
  [SelectionDAGBuilder]  Bugfix in visitInlineAsm()

In case of a virtual register tied to a phys-def, the register class needs to
be computed. Make sure that this works generally also with fast regalloc by
using TLI.getRegClassFor() whenever possible, and make only the case of
'Untyped' use getMinimalPhysRegClass().

Fixes https://bugs.llvm.org/show_bug.cgi?id=51699.

Review: Ulrich Weigand
Differential Revision: https://reviews.llvm.org/D109291




More information about the All-commits mailing list