[PATCH] D85966: [GlobalISel] Add a combine for sext_inreg(load x), c --> sextload x

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 09:23:04 PDT 2020


arsenm added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:669
+  Builder.setInstrAndDebugLoc(MI);
+  auto *MF = MI.getParent()->getParent();
+  auto *NewMMO = MF->getMachineMemOperand(&MMO, 0, ScalarSizeBits / 8);
----------------
Should get the function from the builder


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85966



More information about the llvm-commits mailing list