llvm-reduce: Handle cloning MachineFrameInfo and stack objects
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 13 Apr 2022 23:01:20 +0000 (19:01 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 15 Apr 2022 01:25:06 +0000 (21:25 -0400)
commitf163106f394a57708b1a12d321231a200372023d
tree9e08d17092d7d845d084d4077a2c9155db7dd598
parent2503f286486c1f545d22dd03923478727946caf4
llvm-reduce: Handle cloning MachineFrameInfo and stack objects

This didn't work at all before, and would assert on any frame
index. Also copy the other fields, which I believe should cover
everything. There are a few that are untested since MIR serialization
is apparently still missing them (isStatepointSpillSlot,
ObjectSSPLayout, and ObjectSExt/ObjectZExt).
llvm/include/llvm/CodeGen/MachineFrameInfo.h
llvm/test/tools/llvm-reduce/mir/preserve-frame-info.mir [new file with mode: 0644]
llvm/tools/llvm-reduce/ReducerWorkItem.cpp