[all-commits] [llvm/llvm-project] 9396c3: [AArch64][SVE] Remove assertion/range check for i1...

Usman Nadeem via All-commits all-commits at lists.llvm.org
Wed Aug 11 14:55:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9396c3ec7bdbc9a4aa883927406250395f95c765
      https://github.com/llvm/llvm-project/commit/9396c3ec7bdbc9a4aa883927406250395f95c765
  Author: Usman Nadeem <mnadeem at quicinc.com>
  Date:   2021-08-11 (Wed, 11 Aug 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
    M llvm/test/CodeGen/AArch64/sve-int-arith-imm.ll

  Log Message:
  -----------
  [AArch64][SVE] Remove assertion/range check for i16 values during immediate selection

The assertion can fail in some cases when an i16 constant is promoted
to i32.

e.g. in the added test case the value `i16 -32768` is within the range
of i16 but the assert fails when the constant is promoted to positive
`i32 32768` by an earlier call to DAG.getConstant().

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

Change-Id: I2f6179783cbc9630e6acab149a762b43c65664de




More information about the All-commits mailing list