[all-commits] [llvm/llvm-project] fd6545: [LoongArch] Refactor insertDivByZeroTrap

wangleiat via All-commits all-commits at lists.llvm.org
Fri Jul 29 02:07:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd6545322c9f7915b4a1af567e4f845d33080ddd
      https://github.com/llvm/llvm-project/commit/fd6545322c9f7915b4a1af567e4f845d33080ddd
  Author: wanglei <wanglei at loongson.cn>
  Date:   2022-07-29 (Fri, 29 Jul 2022)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/test/CodeGen/LoongArch/ir-instruction/sdiv-udiv-srem-urem.ll

  Log Message:
  -----------
  [LoongArch] Refactor insertDivByZeroTrap

Ensure non-terminators don't follow terminators.
This patch fixes the `sdiv-udiv-srem-urem.ll` test failure with
expensive check.

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




More information about the All-commits mailing list