[llvm] [WebAssembly] Add support for memcmp expansion (PR #148298)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 21:51:55 PDT 2025
================
@@ -46,6 +46,10 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering(
: TargetLowering(TM), Subtarget(&STI) {
auto MVTPtr = Subtarget->hasAddr64() ? MVT::i64 : MVT::i32;
+ // Set the load count for memcmp expand optimization
+ MaxLoadsPerMemcmp = 3;
+ MaxLoadsPerMemcmpOptSize = 2;
----------------
lukel97 wrote:
8/4 sounds reasonable to me! cc) @mikhailramalho btw, he's recently looked at sweeping the parameter space for RISC-V in https://github.com/llvm/llvm-project/issues/144562 but for a different set of flags
https://github.com/llvm/llvm-project/pull/148298
More information about the llvm-commits
mailing list