[all-commits] [llvm/llvm-project] fb77d9: [AArch64] Fix legalization of i128 ctpop without neon

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Dec 27 08:29:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fb77d95022198edebde3e4cb2807eaeea2156d85
      https://github.com/llvm/llvm-project/commit/fb77d95022198edebde3e4cb2807eaeea2156d85
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-12-27 (Sun, 27 Dec 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    A llvm/test/CodeGen/AArch64/ctpop-nonean.ll

  Log Message:
  -----------
  [AArch64] Fix legalization of i128 ctpop without neon

If neon is disabled, LowerCTPOP will return SDValue() to indicate
that normal legalization should be used. However, ReplaceNodeResults
does not check for this and pushes the empty SDValue() onto the
result vector, which will subsequently result in a crash.

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




More information about the All-commits mailing list