mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
dbdb2581b8
This was causing unnecessary spills/restores of callee saved registers. Fixes PR13572. Patch by Pranav Bhandarkar! llvm-svn: 161778
15 lines
359 B
LLVM
15 lines
359 B
LLVM
; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
|
|
; CHECK: foo_empty
|
|
; CHECK-NOT: allocframe
|
|
; CHECK-NOT: memd(r29
|
|
; CHECK: jump bar_empty
|
|
|
|
define void @foo_empty(i32 %h) nounwind {
|
|
entry:
|
|
%add = add nsw i32 %h, 3
|
|
%call = tail call i32 bitcast (i32 (...)* @bar_empty to i32 (i32)*)(i32 %add) nounwind
|
|
ret void
|
|
}
|
|
|
|
declare i32 @bar_empty(...)
|