[llvm] [Mips] Do not emit instruction teq if divisor is non-zero immediate value in FastISel implementation (PR #135768)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 25 01:26:11 PDT 2025
================
@@ -0,0 +1,22 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -march=mipsel -mcpu=mips32 -O0 -relocation-model=pic | FileCheck %s
+
+define i32 @div_imm_non_zero(i32 signext %a) nounwind {
----------------
yingopq wrote:
`-O3` would not generate `div+teq`.
https://github.com/llvm/llvm-project/pull/135768
More information about the llvm-commits
mailing list