Remove old try-catch. Top down promotion for binary etc. Prevent non-simple widening. Introducing wildcard failable. Move LLVM GEP usage. Regcall test and fix. Optimized slice assign.

This commit is contained in:
Christoffer Lerno
2021-10-22 15:39:20 +02:00
committed by Christoffer Lerno
parent e2a3000c39
commit 29e7af843a
75 changed files with 2890 additions and 2267 deletions

View File

@@ -28,18 +28,19 @@ func Event test(int x)
%intbool = icmp ne i32 %3, 0
br i1 %intbool, label %cond.lhs, label %cond.rhs
cond.lhs:
cond.lhs: ; preds = %entry
%4 = load %Event, %Event* %foo, align 4
br label %cond.phi
cond.rhs:
cond.rhs: ; preds = %entry
%5 = load %Event, %Event* %bar, align 4
br label %cond.phi
cond.phi:
cond.phi: ; preds = %cond.rhs, %cond.lhs
%val = phi %Event [ %4, %cond.lhs ], [ %5, %cond.rhs ]
store %Event %val, %Event* %taddr, align 4
%dive = getelementptr inbounds %Event, %Event* %taddr, i32 0, i32 0
%6 = load i32, i32* %dive, align 4
%7 = zext i32 %6 to i64
ret i64 %7
%6 = getelementptr inbounds %Event, %Event* %taddr, i32 0, i32 0
%7 = load i32, i32* %6, align 4
%8 = zext i32 %7 to i64
ret i64 %8
}