[llvm] [SelectionDAG][WIP] Move HwMode expansion from tablegen to SelectionISel. (PR #174471)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 5 21:02:14 PST 2026


================
@@ -879,9 +879,9 @@ void MatcherGen::EmitResultInstructionAsOperand(
   // Result order: node results, chain, glue
 
   // Determine the result types.
-  SmallVector<MVT, 4> ResultVTs;
+  SmallVector<ValueTypeByHwMode, 4> ResultVTs;
   for (unsigned i = 0, e = N.getNumTypes(); i != e; ++i)
-    ResultVTs.push_back(N.getSimpleType(i));
+    ResultVTs.push_back(N.getType(i));
----------------
topperc wrote:

What's the advantage here?

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


More information about the llvm-commits mailing list