File: 2003-08-03-CallArgLiveRanges.llx

package info (click to toggle)
llvm 2.2-12
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 38,648 kB
  • ctags: 28,258
  • sloc: cpp: 215,479; sh: 12,132; ansic: 10,002; yacc: 5,525; perl: 2,352; ml: 1,580; makefile: 956; pascal: 718; lex: 602; exp: 320; ada: 193; lisp: 160; csh: 116; objc: 59; python: 59; tcl: 20
file content (15 lines) | stat: -rw-r--r-- 569 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; The old instruction selector used to load all arguments to a call up in 
; registers, then start pushing them all onto the stack.  This is bad news as
; it makes a ton of annoying overlapping live ranges.  This code should not
; cause spills!
;
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& not grep spilled

target endian = little
target pointersize = 32

int %test(int, int, int, int, int, int, int, int, int, int) { ret int 0 }
int %main() {
	%X = call int %test(int 1, int 2, int 3, int 4, int 5, int 6, int 7, int 8, int 9, int 10)
	ret int %X
}