mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
7a0f1851ec
If local spiller optimization turns some instruction into an identity copy, it will be removed. If the output register happens to be dead (and source is obviously killed), transfer the kill / dead information to last use / def in the same MBB. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51306 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
785 B
LLVM
23 lines
785 B
LLVM
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin
|
|
|
|
%struct.Decoders = type { i32**, i16***, i16****, i16***, i16**, i8**, i8** }
|
|
@decoders = external global %struct.Decoders ; <%struct.Decoders*> [#uses=1]
|
|
|
|
declare i8* @calloc(i32, i32)
|
|
|
|
declare fastcc i32 @get_mem2Dint(i32***, i32, i32)
|
|
|
|
define fastcc void @init_global_buffers() nounwind {
|
|
entry:
|
|
%tmp151 = tail call fastcc i32 @get_mem2Dint( i32*** getelementptr (%struct.Decoders* @decoders, i32 0, i32 0), i32 16, i32 16 ) ; <i32> [#uses=1]
|
|
%tmp158 = tail call i8* @calloc( i32 0, i32 4 ) ; <i8*> [#uses=0]
|
|
br i1 false, label %cond_true166, label %bb190.preheader
|
|
|
|
bb190.preheader: ; preds = %entry
|
|
%memory_size.3555 = add i32 0, %tmp151 ; <i32> [#uses=0]
|
|
unreachable
|
|
|
|
cond_true166: ; preds = %entry
|
|
unreachable
|
|
}
|