[compiler-rt] [llvm] [WebAssembly] Explicitly set `getCmpLibcallReturnType` to i32 (PR #192425)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 09:15:03 PDT 2026


================
@@ -29,6 +29,11 @@ class WebAssemblyTargetLowering final : public TargetLowering {
   MVT getPointerTy(const DataLayout &DL, uint32_t AS = 0) const override;
   MVT getPointerMemTy(const DataLayout &DL, uint32_t AS = 0) const override;
 
+  MVT::SimpleValueType getCmpLibcallReturnType() const override {
+    // i32 may be more efficient than the default word size for wasm64 targets
+    return MVT::i32;
----------------
sbc100 wrote:

I would rather you include the override when you land #192441.. since that is the point at which it becomes needed.



https://github.com/llvm/llvm-project/pull/192425


More information about the llvm-commits mailing list