HomePhabricator

[X86] Fix stack probe issue on windows32.

Description

[X86] Fix stack probe issue on windows32.

Summary:
On windows if the frame size exceed 4096 bytes, compiler need to
generate a call to _alloca_probe. X86CallFrameOptimization pass
changes the reserved stack size and cause of stack probe function
not be inserted. This patch fix the issue by detecting the call
frame size, if the size exceed 4096 bytes, drop X86CallFrameOptimization.

Reviewers: craig.topper, wxiao3, annita.zhang, rnk, RKSimon

Reviewed By: rnk

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65923

Details

Committed
LuoYuankeAug 9 2019, 7:49 PM
Reviewer
rnk
Differential Revision
D65923: [X86] Fix stack probe issue on windows32.
Parents
rL368502: [MemDep] allow to select block-scan-limit when constructing…
Branches
Unknown
Tags
Unknown