[PATCH] D87252: [Statepoints] Properly handle const base pointer.

Denis Antrushin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 11:23:41 PDT 2020


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

Current code in InstEmitter assumes all GC pointers are either
VRegs or stack slots - hence, taking only one operand.
But it is possible to have constant base, in which case it
occupies two machine operands.

Add a convinience function to StackMaps to get index of next
meta argument and use it in InsrEmitter to properly advance to
the next statepoint meta operand.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87252

Files:
  llvm/include/llvm/CodeGen/StackMaps.h
  llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
  llvm/lib/CodeGen/StackMaps.cpp
  llvm/test/CodeGen/X86/statepoint-vreg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87252.290333.patch
Type: text/x-patch
Size: 5019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200907/f3db5c99/attachment.bin>


More information about the llvm-commits mailing list