[all-commits] [llvm/llvm-project] 09854f: [SelectionDAG] Emit calls to __divei4 and friends ...

Matthias Gehre via All-commits all-commits at lists.llvm.org
Wed Mar 16 02:36:49 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09854f2af3b914b616f29cb640bede3a27cf7c4e
      https://github.com/llvm/llvm-project/commit/09854f2af3b914b616f29cb640bede3a27cf7c4e
  Author: Matthias Gehre <matthias.gehre at xilinx.com>
  Date:   2022-03-16 (Wed, 16 Mar 2022)

  Changed paths:
    M llvm/include/llvm/IR/RuntimeLibcalls.def
    M llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
    A llvm/test/CodeGen/AArch64/udivmodei5.ll
    A llvm/test/CodeGen/X86/udivmodei5.ll

  Log Message:
  -----------
  [SelectionDAG] Emit calls to __divei4 and friends for division/remainder of large integers

Emit calls to __divei4 and friends for divison/remainder of large integers.

This fixes https://github.com/llvm/llvm-project/issues/44994.

The overall RFC is in https://discourse.llvm.org/t/rfc-add-support-for-division-of-large-bitint-builtins-selectiondag-globalisel-clang/60329

The compiler-rt part is in https://reviews.llvm.org/D120327

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




More information about the All-commits mailing list