[PATCH] D73789: [GlobalISel] Tidy up unnecessary calls to createGenericVirtualRegister

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 08:56:35 PST 2020


arsenm accepted this revision.
arsenm added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp:661-664
+  if (Res.getLLTTy(*getMRI()).getSizeInBits() ==
+      Op.getLLTTy(*getMRI()).getSizeInBits()) {
     return buildCast(Res, Op);
   }
----------------
Side note, but I'm not sure this is a fold buildInsert should be trying


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73789





More information about the llvm-commits mailing list