diff options
author | Nikita Popov <npopov@redhat.com> | 2023-09-18 14:35:13 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-09-18 14:58:16 +0200 |
commit | 4491f0b969c04c93e8db397d51c6986e9371a49b (patch) | |
tree | 0332a61abbc2365a2597317c812fb15a27085215 /polly | |
parent | 162bafc8b7a9f25f793bd58c7348e4c94b4a0a84 (diff) | |
download | llvm-4491f0b969c04c93e8db397d51c6986e9371a49b.zip llvm-4491f0b969c04c93e8db397d51c6986e9371a49b.tar.gz llvm-4491f0b969c04c93e8db397d51c6986e9371a49b.tar.bz2 |
[IR] Remove unnecessary bitcast from CreateMalloc()
This bitcast is no longer necessary with opaque pointers. This
results in some annoying variable name changes in tests.
Diffstat (limited to 'polly')
-rw-r--r-- | polly/test/CodeGen/MemAccess/create_arrays_heap.ll | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/polly/test/CodeGen/MemAccess/create_arrays_heap.ll b/polly/test/CodeGen/MemAccess/create_arrays_heap.ll index ada9bd9..d2554d2 100644 --- a/polly/test/CodeGen/MemAccess/create_arrays_heap.ll +++ b/polly/test/CodeGen/MemAccess/create_arrays_heap.ll @@ -31,21 +31,21 @@ ; %E : size(E) = 270336*200000*8 = 432537600000 cast to double* ; %F : size(F) = 270336*8 = 2162688 cast to i64* ; CODEGEN: polly.start: -; CODEGEN: %malloccall = tail call ptr @malloc(i64 2162688) -; CODEGEN: %malloccall1 = tail call ptr @malloc(i64 432537600000) -; CODEGEN: %malloccall2 = tail call ptr @malloc(i64 2162688) +; CODEGEN: %D = tail call ptr @malloc(i64 2162688) +; CODEGEN: %E = tail call ptr @malloc(i64 432537600000) +; CODEGEN: %F = tail call ptr @malloc(i64 2162688) ; ; Check if there are the 3 expected malloc calls with the right parameters at polly.exiting. ; Cast to i8* before freeing because malloc give us a i8 and free is waiting for a i8* ; CODEGEN: polly.exiting: -; CODEGEN: tail call void @free(ptr %malloccall) -; CODEGEN: tail call void @free(ptr %malloccall1) -; CODEGEN: tail call void @free(ptr %malloccall2) +; CODEGEN: tail call void @free(ptr %D) +; CODEGEN: tail call void @free(ptr %E) +; CODEGEN: tail call void @free(ptr %F) ; ; Check if the new access for array E is present. ; CODEGEN: %polly.access.mul.{{.*}} = mul nsw i64 %polly.indvar, 200000 ; CODEGEN: %polly.access.add.{{.*}} = add nsw i64 %polly.access.mul.{{.*}}, % -; CODEGEN: %polly.access.{{.*}} = getelementptr double, ptr %malloccall1, i64 %polly.access.add.{{.*}} +; CODEGEN: %polly.access.{{.*}} = getelementptr double, ptr %E, i64 %polly.access.add.{{.*}} ; ; ModuleID = 'create_arrays_heap.ll' ; |