[all-commits] [llvm/llvm-project] 6a6b0e: [X86] Check the address in machine verifier

KanRobert via All-commits all-commits at lists.llvm.org
Wed Apr 27 19:05:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a6b0e4a63106c44162c9be8f2ec6fb9e7b5a0d8
      https://github.com/llvm/llvm-project/commit/6a6b0e4a63106c44162c9be8f2ec6fb9e7b5a0d8
  Author: Shengchen Kan <shengchen.kan at intel.com>
  Date:   2022-04-28 (Thu, 28 Apr 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86InstrInfo.cpp
    M llvm/lib/Target/X86/X86InstrInfo.h
    A llvm/test/CodeGen/MIR/X86/machine-verifier-address.mir

  Log Message:
  -----------
  [X86] Check the address in machine verifier

1. The scale factor must be 1, 2, 4, 8
2. The displacement must fit in 32-bit signed integer

Noticed by: https://github.com/llvm/llvm-project/issues/55091

Reviewed By: pengfei

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




More information about the All-commits mailing list