[PATCH] D133340: [PowerPC][GISel]select floating point constant from TOC

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 12:31:17 PST 2022


arsenm requested changes to this revision.
arsenm added inline comments.
This revision now requires changes to proceed.


================
Comment at: llvm/lib/Target/PowerPC/GISel/PPCInstructionSelector.cpp:292-296
+  auto LoadInst = BuildMI(*I.getParent(), I, I.getDebugLoc(),
+                          TII.get(TargetOpcode::G_LOAD), DstReg)
+                      .addReg(AddrReg)
+                      .addMemOperand(MMO);
+
----------------
This should have been done in the legalizer, not the selector


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133340



More information about the llvm-commits mailing list