Remove unnecessary load in LLVM statement lowering. Added more tests from Clang.

This commit is contained in:
Christoffer Lerno
2022-01-17 17:08:28 +01:00
parent 05f0059b1b
commit 4059d22315
10 changed files with 280 additions and 103 deletions

View File

@@ -30,6 +30,5 @@ entry:
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %1, i8* align 8 %2, i32 8, i1 false)
%3 = getelementptr inbounds %Bar, %Bar* %b, i32 0, i32 2
%4 = getelementptr inbounds [0 x i32], [0 x i32]* %3, i64 0, i64 1
%5 = load i32, i32* %4, align 4
ret void
}