[llvm] [DAGCombiner] Port custom DAG combine for `rem` from NVPTX (PR #210344)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 13 23:54:58 PDT 2026
def3r wrote:
> LGTM, though why do you need the TypePromoteInteger check
In [this testcase](https://github.com/def3r/llvm-project/blob/4489f93d0779a4d91d5d659362cf2dfdba1db53d/llvm/test/CodeGen/ARM/divmod-eabi.ll#L162-L164) of arm, because i16 is promoted, `__aeabi_idivmod` is used, but if we remove the promote int check, it breaks down to use `__aeabi_idiv` libcall + `mls`. Because we are calling a lib func anyways I though calling the divmod version would be what we want.
https://github.com/llvm/llvm-project/pull/210344
More information about the llvm-commits
mailing list