Skip to content

Commit 376b1e4

Browse files
Remove Align 16
1 parent 7a86041 commit 376b1e4

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,6 @@ OpenMPIRBuilder::InsertPointOrErrorTy OpenMPIRBuilder::createTask(
20922092
if (!stackSave)
20932093
stackSave = Builder.CreateStackSave();
20942094
DepAlloca = Builder.CreateAlloca(DependInfo, depSize, "dep.addr");
2095-
((AllocaInst *)DepAlloca)->setAlignment(Align(16));
20962095
depSize = Builder.CreateTrunc(depSize, Builder.getInt32Ty());
20972096
} else {
20982097
DepAlloca = Builder.CreateAlloca(DepArrayTy, nullptr, ".dep.arr.addr");

mlir/test/Target/LLVMIR/openmp-llvm.mlir

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ llvm.func @_QPomp_atomic_update_complex() {
15541554
//CHECK: %[[VAL_8:.*]] = fadd contract float %[[VAL_6]], 1.000000e+00
15551555
//CHECK: %[[VAL_9:.*]] = insertvalue { float, float } undef, float %[[VAL_7]], 0
15561556
//CHECK: %[[VAL_10:.*]] = insertvalue { float, float } %[[VAL_9]], float %[[VAL_8]], 1
1557-
//CHECK: store { float, float } %[[VAL_10]], ptr %[[X_NEW_VAL]], align 4
1557+
//CHECK: store { float, float } %[[VAL_10]], ptr %[[X_NEW_VAL]], align 4
15581558
//CHECK: %[[VAL_11:.*]] = call i1 @__atomic_compare_exchange(i64 8, ptr %[[ORIG_VAL]], ptr %[[ATOMIC_TEMP_LOAD]], ptr %[[X_NEW_VAL]], i32 2, i32 2)
15591559
//CHECK: %[[VAL_12:.*]] = load { float, float }, ptr %[[ATOMIC_TEMP_LOAD]], align 4
15601560
//CHECK: br i1 %[[VAL_11]], label %.atomic.exit, label %.atomic.cont
@@ -2745,7 +2745,7 @@ llvm.func @omp_task_with_deps(%zaddr: !llvm.ptr) {
27452745
// CHECK: %[[size:.+]] = add i64 %[[obj_addr]], 2
27462746

27472747
// CHECK: %[[stack_ptr:.+]] = call ptr @llvm.stacksave.p0()
2748-
// CHECK: %[[dep_addr:.+]] = alloca %struct.kmp_dep_info, i64 %[[size]], align 16
2748+
// CHECK: %[[dep_addr:.+]] = alloca %struct.kmp_dep_info, i64 %[[size]], align 8
27492749
// CHECK: %[[dep_size:.+]] = trunc i64 %[[size]] to i32
27502750

27512751
// CHECK: %[[gep_03:.+]] = getelementptr %struct.kmp_dep_info, ptr %[[dep_addr]], i64 0
@@ -3069,8 +3069,8 @@ llvm.func @omp_opaque_pointers(%arg0 : !llvm.ptr, %arg1: !llvm.ptr, %expr: i32)
30693069
// CHECK: @__omp_rtl_assume_threads_oversubscription = weak_odr hidden constant i32 1
30703070
// CHECK: @__omp_rtl_assume_no_thread_state = weak_odr hidden constant i32 1
30713071
// CHECK: @__omp_rtl_assume_no_nested_parallelism = weak_odr hidden constant i32 1
3072-
module attributes {omp.flags = #omp.flags<debug_kind = 1, assume_teams_oversubscription = true,
3073-
assume_threads_oversubscription = true, assume_no_thread_state = true,
3072+
module attributes {omp.flags = #omp.flags<debug_kind = 1, assume_teams_oversubscription = true,
3073+
assume_threads_oversubscription = true, assume_no_thread_state = true,
30743074
assume_no_nested_parallelism = true>} {}
30753075
// -----
30763076

@@ -3115,8 +3115,8 @@ module attributes {omp.version = #omp.version<version = 51>} {}
31153115
// CHECK: @__omp_rtl_assume_threads_oversubscription = weak_odr hidden constant i32 0
31163116
// CHECK: @__omp_rtl_assume_no_thread_state = weak_odr hidden constant i32 0
31173117
// CHECK: @__omp_rtl_assume_no_nested_parallelism = weak_odr hidden constant i32 0
3118-
module attributes {omp.flags = #omp.flags<debug_kind = 0, assume_teams_oversubscription = false,
3119-
assume_threads_oversubscription = false, assume_no_thread_state = false,
3118+
module attributes {omp.flags = #omp.flags<debug_kind = 0, assume_teams_oversubscription = false,
3119+
assume_threads_oversubscription = false, assume_no_thread_state = false,
31203120
assume_no_nested_parallelism = false>} {}
31213121

31223122
// -----

0 commit comments

Comments
 (0)