[PATCH] D75335: [InlineSpiller] Relax re-materialization restriction for statepoint

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 28 02:58:18 PST 2020


skatkov created this revision.
skatkov added a reviewer: reames.
Herald added subscribers: hiraditya, qcolombet.
Herald added a project: LLVM.

We should be careful to allow count of re-materialization of operands to be less
then number of physical registers.

STATEPOINT instruction has a variable number of operands and potentially very big.
So re-materialization for all operands is disabled at the moment if restrict-statepoint-remat is true.

The patch relaxes the re-materialization restriction for STATEPOINT instruction allowing it for
fixed operands. Specifically it is about call target.


https://reviews.llvm.org/D75335

Files:
  llvm/lib/CodeGen/InlineSpiller.cpp
  llvm/test/CodeGen/X86/statepoint-live-in-remat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75335.247194.patch
Type: text/x-patch
Size: 7290 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200228/ce7c3e0a/attachment.bin>


More information about the llvm-commits mailing list