mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
f10743d765
Allocas marked inalloca are never static, but we were trying to put them into the static alloca map if they were in the entry block. Also add an assertion in x86 fastisel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200593 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
424 B
LLVM
20 lines
424 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 i32, inalloca
|
|
ret void
|
|
}
|
|
; CHECK-LABEL: _bar:
|
|
; CHECK: calll __chkstk
|
|
; CHECK: retl
|