[PATCH] D98050: [AMDGPU][GlobalISel] Transform (fsub (fpext (fneg (fmul x, y))), z) -> (fneg (fma (fpext x), (fpext y), z))

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 7 06:30:04 PDT 2021


arsenm added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:4725
+    MachineInstr *MI00 = MRI.getVRegDef(MI0->getOperand(1).getReg());
+    if (MI00->getOpcode() == TargetOpcode::G_FPEXT) {
+      MachineInstr *MI000 = MRI.getVRegDef(MI00->getOperand(1).getReg());
----------------
Should have mi_match support for fneg/fpext and use that


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

https://reviews.llvm.org/D98050



More information about the llvm-commits mailing list