[all-commits] [llvm/llvm-project] 41fb11: [CodeGen] Fix nullptr crash in tryConvertSVEWideCo...

david-arm via All-commits all-commits at lists.llvm.org
Mon Jun 8 07:20:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 41fb119e8cce45a9458d72962cc3c07cb503586e
      https://github.com/llvm/llvm-project/commit/41fb119e8cce45a9458d72962cc3c07cb503586e
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-06-08 (Mon, 08 Jun 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/sve-intrinsics-int-compares.ll

  Log Message:
  -----------
  [CodeGen] Fix nullptr crash in tryConvertSVEWideCompare

When the input to a wide compare instruction is a DUP or SPLAT_VECTOR
node we should deal with cases where the DUP/SPLAT_VECTOR input
operand is not an immediate value. I've fixed the code to return
SDValue() in such cases and added a couple of tests - one each to
represent the signed and unsigned cases.

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




More information about the All-commits mailing list