[PATCH] D69513: [GlobalISel] Widen one type at the time for insert/extract vector elt

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 08:26:00 PDT 2019


Petar.Avramovic marked an inline comment as done.
Petar.Avramovic added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:1784
+      Observer.changingInstr(MI);
+      widenScalarSrc(MI, WideTy, 1, TargetOpcode::G_SEXT);
+      Observer.changedInstr(MI);
----------------
G_INSERT_VECTOR_ELT uses G_ANYEXT for its vector TypeIdx (0). Should this one also use  G_ANYEXT?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69513





More information about the llvm-commits mailing list