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

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 13:11:27 PST 2023


arsenm added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/GISel/PPCLegalizerInfo.cpp:53
 
+  getActionDefinitionsBuilder(G_FCONSTANT).lowerFor({S32, S64});
+  getActionDefinitionsBuilder(G_CONSTANT_POOL).legalFor({P0});
----------------
nemanjai wrote:
> In SDAG, we have the capability to mark specific FP constants legal. Does a similar capability exist with GISel? Not using constant pool loads for constants such as `0.0` is quite important.
> Perhaps a TODO is in order here?
It's not implemented. You could custom lower it, or use the immediate legal hook in the default lower implementation


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