[ARM] Only update the successor edges for immediate predecessors of PrologueMBB
authorZhiyao Ma <zhiyao.ma.98@gmail.com>
Tue, 3 May 2022 11:29:48 +0000 (12:29 +0100)
committerJohn Brawn <john.brawn@arm.com>
Tue, 3 May 2022 11:36:35 +0000 (12:36 +0100)
commitbd606afe26f258d081fbe025b20a71b277c1edde
treed1f4b0b24fa1d42b36bf0a7044ce9b76c6d56fa8
parent1fc208d40012103f81279ab85949a91f8188e7a1
[ARM] Only update the successor edges for immediate predecessors of PrologueMBB

When adjusting the function prologue for segmented stacks, only update
the successor edges of the immediate predecessors of the original
prologue.

Differential Revision: https://reviews.llvm.org/D122959
llvm/lib/Target/ARM/ARMFrameLowering.cpp
llvm/test/CodeGen/ARM/segmented-stacks.ll
llvm/test/CodeGen/Thumb/segmented-stacks.ll
llvm/test/CodeGen/Thumb2/segmented-stacks.ll