mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Revert r160529 due to crashes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160532 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,7 +17,7 @@ define void @test() nounwind ssp {
|
||||
%2 = sext i32 %1 to i64 ; <i64> [#uses=1]
|
||||
%3 = mul i64 %2, ptrtoint (%struct.strchartype* getelementptr (%struct.strchartype* null, i64 1) to i64) ; <i64> [#uses=1]
|
||||
%4 = tail call i8* @malloc(i64 %3) ; <i8*> [#uses=1]
|
||||
; CHECK-NOT: call i8* @malloc(i64
|
||||
; CHECK: call i8* @malloc(i64
|
||||
%5 = bitcast i8* %4 to %struct.strchartype* ; <%struct.strchartype*> [#uses=1]
|
||||
store %struct.strchartype* %5, %struct.strchartype** @chartypes, align 8
|
||||
ret void
|
||||
|
@@ -1,20 +0,0 @@
|
||||
; RUN: opt -globalopt -S -o - < %s | FileCheck %s
|
||||
|
||||
@test1 = internal global i8* null
|
||||
|
||||
define void @test1a() {
|
||||
; CHECK: @test1a
|
||||
; CHECK-NOT: store
|
||||
; CHECK-NEXT: ret void
|
||||
store i8* null, i8** @test1
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @test1b(i8* %p) {
|
||||
; CHECK: @test1b
|
||||
; CHECK-NEXT: store
|
||||
; CHECK-NEXT: ret void
|
||||
store i8* %p, i8** @test1
|
||||
ret void
|
||||
}
|
||||
|
Reference in New Issue
Block a user