Fix dynamic probing scheme
authorserge-sans-paille <sguelton@redhat.com>
Wed, 3 Jun 2020 08:18:29 +0000 (10:18 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Wed, 10 Jun 2020 19:37:09 +0000 (21:37 +0200)
commit60fe25cb0c73f1ad2d973539512859d37154fe35
tree70d8e04fb695f0af06834133dd15b9a687d71fae
parent0671a4c5087d40450603d9d26cf239f1a8b1367e
Fix dynamic probing scheme

If we probe *after* each static stack allocation, we need to probe *before* each
dynamic stack allocation. Provide a scheme to describe the possible scenario.

Thanks a lot to @jonpa for motivating this fix.

Differential Revision: https://reviews.llvm.org/D81067
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/stack-clash-dynamic-alloca.ll