This casuses assertion failures targeting 32-bit x86:
lib/Target/X86/X86RegisterInfo.cpp:989:
virtual bool llvm::X86RegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator, int, unsigned int, RegScavenger *) const:
Assertion `(Is64Bit || FitsIn32Bits) && "Requesting 64-bit offset in 32-bit immediate!"' failed.
See comment on the PR.
> Fix 32-bit integer overflows in the X86 target frame layout when dealing
> with frames larger than 4gb. When this occurs, we'll scavenge a scratch
> register to be able to hold the correct stack offset for frame locals.
>
> This completes reapplying #84114.
>
> Fixes #48911
> Fixes #75944
> Fixes #87154
This reverts commit 0abb779161.
15 lines
364 B
LLVM
15 lines
364 B
LLVM
; RUN: llc < %s -mtriple=x86_64-windows-gnu | FileCheck %s
|
|
|
|
define void @foo() unnamed_addr #0 {
|
|
start:
|
|
%b = alloca i64, align 8
|
|
%c = alloca [4294967295 x i8], align 1
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nonlazybind uwtable "probe-stack"="probe_stack" "target-cpu"="x86-64" }
|
|
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: movabsq $4294967304, %rax
|
|
; CHECK-NEXT: callq probe_stack
|