[PATCH] D109357: [GlobalISel] Add a combine for and(load , mask) -> zextload

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 14 21:22:54 PDT 2021


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


================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:637
+bool CombinerHelper::matchCombineLoadWithAndMask(
+    MachineInstr &MI, std::function<void(MachineIRBuilder &)> &MatchInfo) {
+  assert(MI.getOpcode() == TargetOpcode::G_AND);
----------------
We can use the `BuildFnTy` typedef here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109357



More information about the llvm-commits mailing list