[all-commits] [llvm/llvm-project] 4a9e6c: [SelectionDAG] Correct AddNodeIDCustom for MemIntr...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu May 11 16:29:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a9e6c422f5dd1e1d0681d3e781ed9370011acec
      https://github.com/llvm/llvm-project/commit/4a9e6c422f5dd1e1d0681d3e781ed9370011acec
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-05-11 (Thu, 11 May 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/test/CodeGen/X86/any_extend_vector_inreg_of_broadcast_from_memory.ll
    M llvm/test/CodeGen/X86/pr57340.ll

  Log Message:
  -----------
  [SelectionDAG] Correct AddNodeIDCustom for MemIntrinsicSDNodes.

We were missing any support for ISD::INTRINSIC_W_CHAIN/INTRINSIC_VOID
used for memory operations.

For ISD::PREFETCH and target memory nodes we didn't add the subclass
data.

This patch handles all MemIntrinsicSDNode in one place and adds the
missing subclass data.

Note. Unlike load/stores we don't add the memory VT in AddNodeIDCustom or getMemIntrinsicNode. Not sure why.

Reviewed By: efriedma

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




More information about the All-commits mailing list