mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Remove some uneeded pseudos in the presence of the naked function attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181072 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
; RUN: llc -march=mipsel < %s | FileCheck %s
|
||||
|
||||
|
||||
define void @tnaked() #0 {
|
||||
entry:
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: .ent tnaked
|
||||
; CHECK: tnaked:
|
||||
; CHECK-NOT: .frame {{.*}}
|
||||
; CHECK-NOT: .mask {{.*}}
|
||||
; CHECK-NOT: .fmask {{.*}}
|
||||
; CHECK-NOT: addiu $sp, $sp, -8
|
||||
|
||||
define void @tnonaked() #1 {
|
||||
entry:
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: .ent tnonaked
|
||||
; CHECK: tnonaked:
|
||||
; CHECK: .frame $fp,8,$ra
|
||||
; CHECK: .mask 0x40000000,-4
|
||||
; CHECK: .fmask 0x00000000,0
|
||||
; CHECK: addiu $sp, $sp, -8
|
||||
|
||||
attributes #0 = { naked noinline nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
||||
attributes #1 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
||||
Reference in New Issue
Block a user