mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-12 23:40:54 +00:00
a9355d3c68
with an additional fix to make RegAllocFast ignore undef physreg uses. It would previously get confused about the "push %eax" instruction's use of eax. That method for adjusting the stack pointer is used in X86FrameLowering::emitSPUpdate as well, but since that runs after register-allocation, we didn't run into the RegAllocFast issue before. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269949 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
419 B
LLVM
20 lines
419 B
LLVM
; RUN: llc < %s -mtriple=i686-pc-win32 | FileCheck %s
|
|
|
|
; Allocas with unknown size in the entry block are dynamic.
|
|
define void @foo(i32 %n) {
|
|
%m = alloca i32, i32 %n
|
|
ret void
|
|
}
|
|
; CHECK-LABEL: _foo:
|
|
; CHECK: calll __chkstk
|
|
; CHECK: retl
|
|
|
|
; Use of inalloca implies that that the alloca is not static.
|
|
define void @bar() {
|
|
%m = alloca inalloca i32
|
|
ret void
|
|
}
|
|
; CHECK-LABEL: _bar:
|
|
; CHECK: pushl %eax
|
|
; CHECK: retl
|