[all-commits] [llvm/llvm-project] 71947e: [AArch64][GlobalISel] Constrain reg operands in se...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Thu Apr 2 20:34:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 71947ed927ee25d7e7ec3277004b02908b48b60d
      https://github.com/llvm/llvm-project/commit/71947ed927ee25d7e7ec3277004b02908b48b60d
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2020-04-02 (Thu, 02 Apr 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/select-jump-table-brjt-constrain.mir

  Log Message:
  -----------
  [AArch64][GlobalISel] Constrain reg operands in selectBrJT

This was causing a machine verifier failure on the test suite.

Make sure that we don't end up with a weird register class here.

Failure for reference:

*** Bad machine code: Illegal virtual register for instruction ***
- function:    check_constrain
- basic block: %bb.1  (0x7f8b70839f80)
- instruction: early-clobber %6:gpr64, early-clobber %7:gpr64sp =
  JumpTableDest32 %5:gpr64, %1:gpr64sp, %jump-table.0
- operand 3:   %1:gpr64sp
Expected a GPR64 register, but got a GPR64sp register

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




More information about the All-commits mailing list