[llvm] [WebAssembly] Fix missed optimization in 50142 (PR #144741)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 04:59:03 PDT 2025
================
@@ -3400,8 +3436,11 @@ WebAssemblyTargetLowering::PerformDAGCombine(SDNode *N,
return performVectorTruncZeroCombine(N, DCI);
case ISD::TRUNCATE:
return performTruncateCombine(N, DCI);
- case ISD::INTRINSIC_WO_CHAIN:
+ case ISD::INTRINSIC_WO_CHAIN: {
+ if (auto AnyTrueCombine = performAnyTrueCombine(N, DCI.DAG))
----------------
lukel97 wrote:
Nit, auto is mainly only used when the type already appears in a `cast<Foo>` or the type is complex like an std::pair
```suggestion
if (SDValue AnyTrueCombine = performAnyTrueCombine(N, DCI.DAG))
```
https://github.com/llvm/llvm-project/pull/144741
More information about the llvm-commits
mailing list