Commit cc9c6ee0 authored by Marius Wachtler's avatar Marius Wachtler

llvm tier: reduce scratch size

With the new frame introspection we don't need to save additional space for spilling vars which live in regs (except for deopts).
And for deopts we will never need more scratch than the one required for spilling the args.
parent 02bd71a8
......@@ -129,7 +129,7 @@ public:
const std::vector<FrameVarInfo>& getFrameVars() { return frame_vars; }
int scratchStackmapArg() { return 0; }
int scratchSize() { return 80 + MAX_FRAME_SPILLS * sizeof(void*); }
int scratchSize() { return isDeopt() ? MAX_FRAME_SPILLS * sizeof(void*) : 96; }
bool isDeopt() const { return icinfo ? icinfo->isDeopt() : false; }
bool isFrameInfoStackmap() const { return is_frame_info_stackmap; }
int numFrameSpillsSupported() const { return isDeopt() ? MAX_FRAME_SPILLS : 0; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment