mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Change objectsize intrinsic to accept different address spaces.
Bitcasting everything to i8* won't work. Autoupgrade the old intrinsic declarations to use the new mangling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192117 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -204,7 +204,7 @@ entry:
|
||||
; <rdar://problem/9187792>
|
||||
define fastcc void @func_61() nounwind sspreq {
|
||||
entry:
|
||||
%t1 = tail call i64 @llvm.objectsize.i64(i8* undef, i1 false)
|
||||
%t1 = tail call i64 @llvm.objectsize.i64.p0i8(i8* undef, i1 false)
|
||||
%t2 = icmp eq i64 %t1, -1
|
||||
br i1 %t2, label %bb2, label %bb1
|
||||
|
||||
@@ -215,7 +215,7 @@ bb2:
|
||||
ret void
|
||||
}
|
||||
|
||||
declare i64 @llvm.objectsize.i64(i8*, i1) nounwind readnone
|
||||
declare i64 @llvm.objectsize.i64.p0i8(i8*, i1) nounwind readnone
|
||||
|
||||
; PR10277
|
||||
; This test has dead code elimination caused by remat during spilling.
|
||||
|
Reference in New Issue
Block a user