[PATCH] D87554: [GISel]: Add combine for G_FABS to G_FABS

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 12 07:51:05 PDT 2020


arsenm added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:2028-2031
+  assert(MI.getNumDefs() == 1 && "Expected only one def?");
+  Builder.setInstrAndDebugLoc(MI);
+  Builder.buildCopy(MI.getOperand(0), Src);
+  MI.eraseFromParent();
----------------
replaceRegWith?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87554



More information about the llvm-commits mailing list