[PATCH] D73214: [MIPS GlobalISel] Select count leading zeros

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 04:41:33 PST 2020


atanasyan added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:980
   case TargetOpcode::G_CTPOP:
-    if (TypeIdx != 0)
-      return UnableToLegalize; // TODO
+    if (TypeIdx == 1)
+      switch (MI.getOpcode()) {
----------------
Is it possible that `TypeIdx != 0 && TypeIdx != 1` ?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73214/new/

https://reviews.llvm.org/D73214





More information about the llvm-commits mailing list