This is an archive of the discontinued LLVM Phabricator instance.

[PATCH] Ensure that variable length allocas with large alignments gets proper stack probes
Needs ReviewPublic

Authored by Zoxc on Aug 9 2015, 12:52 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Previously allocas was aligned after allocation, which means that there were up to <alignment - 1> bytes potentially unchecked.

Diff Detail

Repository
rL LLVM

Event Timeline

Zoxc updated this revision to Diff 31610.Aug 9 2015, 12:52 AM
Zoxc retitled this revision from to [PATCH] Ensure that variable length allocas with large alignments gets proper stack probes.
Zoxc updated this object.
Zoxc set the repository for this revision to rL LLVM.
Zoxc added a subscriber: llvm-commits.
Zoxc added a reviewer: mkuper.Aug 9 2015, 1:07 AM
mkuper edited edge metadata.Aug 9 2015, 1:47 AM

Thanks for patch.

As we've discussed on IRC though - I'm not sure this works.
What guarantees the initial alignment of %rsp is high enough that subtracting %rax from it results in a properly-aligned variable?

mkuper resigned from this revision.Jun 29 2016, 3:09 PM
mkuper removed a reviewer: mkuper.