mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Add 'nonnull', a new parameter and return attribute which indicates that the pointer is not null. Instcombine will elide comparisons between these and null. Patch by Luqman Aden!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -218,6 +218,11 @@ define void @f36(i8* inalloca) {
|
||||
ret void
|
||||
}
|
||||
|
||||
define nonnull i8* @f37(i8* nonnull %a) {
|
||||
; CHECK: define nonnull i8* @f37(i8* nonnull %a) {
|
||||
ret i8* %a
|
||||
}
|
||||
|
||||
; CHECK: attributes #0 = { noreturn }
|
||||
; CHECK: attributes #1 = { nounwind }
|
||||
; CHECK: attributes #2 = { readnone }
|
||||
|
||||
Reference in New Issue
Block a user