Files
clang-p2996/llvm/lib/Target/X86/X86FrameLowering.cpp
macurtis-amd 69f202bf36 [llvm][X86] Fix merging of large sp updates (#125007)
In cases where `emitSPUpdate` produced multiple adds:
```
call foo
add 0x7FFFFFFF   <--chunk size
add ...
```
`mergeSPUpdates` would incorrectly adjust the offset of the first add
producing an invalid immediate value.

This change teaches `mergeSPUpdates` to look for a subsequent add if
updating the current one would exceed the chunk size.

@phoebewang @mconst
2025-02-04 07:12:14 -06:00

178 KiB