[PATCH] D108842: [ARMISelLowering] avoid emitting libcalls to __mulodi4()
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 27 14:07:32 PDT 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/ARM/ARMISelLowering.cpp:547
setLibcallName(RTLIB::SRA_I128, nullptr);
setLibcallName(RTLIB::MUL_I128, nullptr);
+ setLibcallName(RTLIB::MULO_I64, nullptr);
----------------
Can you go ahead and add MULO_I128 here as well? C code probably can't hit it assuming __int128 isn't legal on ARM, but good to block other users.
================
Comment at: llvm/test/CodeGen/ARM/overflow-intrinsic-optimizations.ll:241
+entry:
+ %a.addr = alloca i32, align 4
+ %b.addr = alloca i64, align 8
----------------
Can you run this through mem2reg?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108842/new/
https://reviews.llvm.org/D108842
More information about the llvm-commits
mailing list