Page MenuHomePhabricator

[GlobalISel] Set stack protector index when translating Intrinsic::stackprotector

Authored by petpav01 on Dec 7 2018, 2:03 AM.



Record the stack protector index in MachineFrameInfo when translating Intrinsic::stackprotector similarly as is done by SelectionDAG when processing the same intrinsic.

Setting this index allows the Prologue/Epilogue Insertion to recognize that the stack protection is enabled. The pass can then make sure that the stack protector comes before local variables on the stack and assigns potentially vulnerable objects first so they are close to the stack protector slot.

Diff Detail


Event Timeline

petpav01 created this revision.Dec 7 2018, 2:03 AM
aemerson accepted this revision.Dec 7 2018, 9:44 AM
This revision is now accepted and ready to land.Dec 7 2018, 9:44 AM
This revision was automatically updated to reflect the committed changes.