HomePhabricator

[Statepoints] Properly handle const base pointer.

Authored by dantrushin on Sep 7 2020, 8:04 AM.

Description

[Statepoints] Properly handle const base pointer.

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.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D87252

Details

Committed
dantrushinSep 9 2020, 12:07 AM
Reviewer
reames
Differential Revision
D87252: [Statepoints] Properly handle const base pointer.
Parents
rG3ebc7552270e: [ARM] Try to rematerialize VCTP instructions
Branches
Unknown
Tags
Unknown