[PATCH] D97727: [AArch64][GlobalISel] NFC: Remove dead G_BUILD_VECTOR legalization rule

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 1 14:05:28 PST 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3e8223b16515: [AArch64][GlobalISel] NFC: Remove dead G_BUILD_VECTOR legalization rule (authored by paquette).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97727

Files:
  llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp


Index: llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
===================================================================
--- llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
+++ llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
@@ -636,12 +636,6 @@
                  {v2s64, s64}})
       .clampNumElements(0, v4s32, v4s32)
       .clampNumElements(0, v2s64, v2s64)
-
-      // Deal with larger scalar types, which will be implicitly truncated.
-      .legalIf([=](const LegalityQuery &Query) {
-        return Query.Types[0].getScalarSizeInBits() <
-               Query.Types[1].getSizeInBits();
-      })
       .minScalarSameAs(1, 0);
 
   getActionDefinitionsBuilder(G_CTLZ)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97727.327287.patch
Type: text/x-patch
Size: 700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210301/51a458fc/attachment.bin>


More information about the llvm-commits mailing list