[llvm] [WebAssembly] [Backend] Draft pull request for #129441 (PR #145108)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 20 15:47:03 PDT 2025


lukel97 wrote:

> I'm unsure why the hook for AND is not triggered when there are AND nodes as input to SelectionDAG. 

For the generic DAG nodes like ISD::AND you need to tell SelectionDAG that your target wants to perform custom combines on them by calling `setTargetDAGCombine(ISD::AND);` somewhere in the `WebAssemblyTargetLowering` constructor. Does that fix what you're seeing?

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


More information about the llvm-commits mailing list