[PATCH] D117765: [AMDGPU][GlobalISel] Select source modifiers for VOP3Opsel

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 09:12:42 PST 2022


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp:3542
+static Register isExtractHiElt(const MachineRegisterInfo &MRI, Register In) {
+  if (MRI.getType(In) == LLT::scalar(16))
+    if (!mi_match(In, MRI, m_GTrunc(m_Reg(In))))
----------------
Braces and save type to variable instead of querying it a second time later


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

https://reviews.llvm.org/D117765



More information about the llvm-commits mailing list