[PATCH] D80318: [Statepoint] Constant fold FP deopt args.

Denis Antrushin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 20 13:11:16 PDT 2020


dantrushin created this revision.
dantrushin added reviewers: reames, skatkov.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

We do not have any special handling for constant FP deopt arguments.
They are just spilled to stack or generated in register by MOVS
instruction. This is inefficient and, when we have too many such
constant arguments, may result in register allocation failure.
Instead, we can bitcast such constant Fp operands to appropriately
sized integer and record as constant into statepoint and later, into
StackMap.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80318

Files:
  llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
  llvm/test/CodeGen/X86/statepoint-regs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80318.265330.patch
Type: text/x-patch
Size: 5984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200520/7293dab4/attachment.bin>


More information about the llvm-commits mailing list