1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 15:26:00 +02:00

Fixed bug with stack saving

In certain cases when we need to remove the StackSave (because we crossed the save threshold with an allocation), there may already be restores using that stack save which need to be removed as well.
This commit is contained in:
Brian Fiete 2019-09-18 13:00:44 -07:00
parent be7e82f5b6
commit 9f1ea28953
8 changed files with 25 additions and 10 deletions

View file

@ -1099,7 +1099,7 @@ public:
BfIRValue CreateMemSet(BfIRValue addr, BfIRValue val, BfIRValue size, int align);
void CreateFence(BfIRFenceType fenceType);
BfIRValue CreateStackSave();
void CreateStackRestore(BfIRValue stackVal);
BfIRValue CreateStackRestore(BfIRValue stackVal);
BfIRValue CreateGlobalVariable(BfIRType varType, bool isConstant, BfIRLinkageType linkageType, BfIRValue initializer, const StringImpl& name, bool isTLS = false);
void GlobalVar_SetUnnamedAddr(BfIRValue val, bool unnamedAddr);