[llvm] [WebAssembly] TableGen-erate SDNode descriptions (PR #166259)

Sam Parker via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 4 01:24:46 PST 2025


================
@@ -1830,11 +1816,8 @@ SDValue WebAssemblyTargetLowering::LowerLoad(SDValue Op,
 
     SDValue Idx = DAG.getTargetConstant(*Local, Base, MVT::i32);
     EVT LocalVT = LN->getValueType(0);
-    SDValue LocalGet = DAG.getNode(WebAssemblyISD::LOCAL_GET, DL, LocalVT,
-                                   {LN->getChain(), Idx});
-    SDValue Result = DAG.getMergeValues({LocalGet, LN->getChain()}, DL);
-    assert(Result->getNumValues() == 2 && "Loads must carry a chain!");
-    return Result;
+    return DAG.getNode(WebAssemblyISD::LOCAL_GET, DL, {LocalVT, MVT::Other},
----------------
sparker-arm wrote:

Ah, yes, thanks.

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


More information about the llvm-commits mailing list