[all-commits] [llvm/llvm-project] 67eb2f: [SelectionDAG] Add AssertAlign to AddNodeIDCustom ...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Mar 24 09:07:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67eb2f144e9ef9094d122076c4b976aa586ac0f3
      https://github.com/llvm/llvm-project/commit/67eb2f144e9ef9094d122076c4b976aa586ac0f3
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-03-24 (Thu, 24 Mar 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

  Log Message:
  -----------
  [SelectionDAG] Add AssertAlign to AddNodeIDCustom so that it will CSE properly.

The alignment needs to be part of the folding set hash. This is
handled by getAssertAlign when nodes are created, but needs to repeated here.

No test case as I found it as part of a very early experimental patch.

Reviewed By: spatel

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




More information about the All-commits mailing list