[all-commits] [llvm/llvm-project] cd09f4: [CodeGen] This patch fix a bug that may caused err...

yan zhou via All-commits all-commits at lists.llvm.org
Thu Dec 21 04:39:19 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd09f4b9510583e847267cae04eee87caf4d5e9d
      https://github.com/llvm/llvm-project/commit/cd09f4b9510583e847267cae04eee87caf4d5e9d
  Author: yan zhou <42528857+zhou3968322 at users.noreply.github.com>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

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

  Log Message:
  -----------
  [CodeGen] This patch fix a bug that may caused error for a self-defined target in SelectionDAG::getNode (#75320)

we need first judge N1.getNumOperands() > 0.

If Lowering Generated SDNode like.

```
v2i32 t20:  TargetOpNode.
i32 t21: extract_vector_elt t20  0
i32 t22: extract_vector_elt t20 1
```

will cause a error.




More information about the All-commits mailing list