[PATCH] D95699: [GlobalISel] Disable vector types in narrowScalarAddSub

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 29 17:52:20 PST 2021


arsenm added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:4451-4454
+  if (MRI.getType(MI.getOperand(0).getReg()).isVector())
+    return UnableToLegalize;
+
   uint64_t SizeOp0 = MRI.getType(MI.getOperand(0).getReg()).getSizeInBits();
----------------
Use a temporary variable for the register/type to avoid repeating this


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D95699



More information about the llvm-commits mailing list