[all-commits] [llvm/llvm-project] a815f0: [LegalizeTypes] Use report_fatal_error instead of ...

Craig Topper via All-commits all-commits at lists.llvm.org
Sat Jul 22 11:16:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a815f03f9bab7be34ca41a63bc4df6dd751aed9e
      https://github.com/llvm/llvm-project/commit/a815f03f9bab7be34ca41a63bc4df6dd751aed9e
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-07-22 (Sat, 22 Jul 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

  Log Message:
  -----------
  [LegalizeTypes] Use report_fatal_error instead of llvm_unreachable in the default case of some type legalization handlers.

These can be triggered by in various ways when intrinsics are used wrong or a target doesn't correctly
not support something. Using a fatal error prevents strange behavior
like infinite loops.

We already do this for some of the vector type legalization handles.


  Commit: 33fad3037d50f6433044fa20a3ec6bf48d71664d
      https://github.com/llvm/llvm-project/commit/33fad3037d50f6433044fa20a3ec6bf48d71664d
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-07-22 (Sat, 22 Jul 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [X86] Fix typo in comment. NFC


Compare: https://github.com/llvm/llvm-project/compare/90933c257c41...33fad3037d50


More information about the All-commits mailing list