[PATCH] D50789: [TableGen] Remove unnecessary TypeSetByHwMode -> ValueTypeByHwMode -> TypeSetByHwMode conversions in getPatternSize

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 15 13:42:03 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL339812: [TableGen] Remove unnecessary TypeSetByHwMode -> ValueTypeByHwMode ->… (authored by RKSimon, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D50789?vs=160840&id=160912#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50789

Files:
  llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp


Index: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
===================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -1278,7 +1278,7 @@
   for (unsigned i = 0, e = P->getNumChildren(); i != e; ++i) {
     const TreePatternNode *Child = P->getChild(i);
     if (!Child->isLeaf() && Child->getNumTypes()) {
-      const TypeSetByHwMode &T0 = Child->getType(0);
+      const TypeSetByHwMode &T0 = Child->getExtType(0);
       // At this point, all variable type sets should be simple, i.e. only
       // have a default mode.
       if (T0.getMachineValueType() != MVT::Other) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50789.160912.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180815/06e07c5b/attachment.bin>


More information about the llvm-commits mailing list