mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Auto-upgrade malloc instructions to malloc calls.
Reviewed by Devang Patel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -63,7 +63,7 @@ entry:
|
||||
define i32 @foo2(i32 %n) nounwind {
|
||||
entry:
|
||||
%call = malloc i8, i32 %n ; <i8*> [#uses=1]
|
||||
; CHECK: %call =
|
||||
; CHECK: %malloccall =
|
||||
; CHECK: ==> %n elements, %n bytes allocated
|
||||
%call2 = tail call i8* @calloc(i64 2, i64 4) nounwind ; <i8*> [#uses=1]
|
||||
; CHECK: %call2 =
|
||||
|
||||
Reference in New Issue
Block a user