Skip to content

Commit 1e8abf9

Browse files
committed
Remove unneeded align matching
1 parent 6c38481 commit 1e8abf9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clang/test/CIR/CodeGen/loop.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ void l5() {
313313
// CIR: %[[END_ADDR:.*]] = cir.alloca {{.*}} ["__end1", init]
314314
// CIR: %[[X_ADDR:.*]] = cir.alloca {{.*}} ["x", init]
315315
// CIR: %[[ARR_INIT:.*]] = cir.const #cir.const_array<[#cir.int<1> : !s32i, #cir.int<2> : !s32i, #cir.int<3> : !s32i, #cir.int<4> : !s32i]>
316-
// CIR: cir.store align(16) %[[ARR_INIT]], %[[ARR_ADDR]]
317-
// CIR: cir.store align(8) %[[ARR_ADDR]], %[[RANGE_ADDR]]
316+
// CIR: cir.store{{.*}} %[[ARR_INIT]], %[[ARR_ADDR]]
317+
// CIR: cir.store{{.*}} %[[ARR_ADDR]], %[[RANGE_ADDR]]
318318
// CIR: %[[RANGE_LOAD:.*]] = cir.load %[[RANGE_ADDR]]
319319
// CIR: %[[RANGE_CAST:.*]] = cir.cast array_to_ptrdecay %[[RANGE_LOAD]] : {{.*}}
320320
// CIR: cir.store{{.*}} %[[RANGE_CAST]], %[[BEGIN_ADDR]]

clang/test/CIR/CodeGen/struct.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void paren_expr() {
108108
// CIR: %[[A_ADDR:.*]] = cir.alloca !rec_Point, !cir.ptr<!rec_Point>, ["a", init]
109109
// CIR: %[[B_ADDR:.*]] = cir.alloca !rec_Point, !cir.ptr<!rec_Point>, ["b", init]
110110
// CIR: %[[CONST:.*]] = cir.const #cir.zero : !rec_Point
111-
// CIR: cir.store align(4) %[[CONST]], %[[A_ADDR]] : !rec_Point, !cir.ptr<!rec_Point>
111+
// CIR: cir.store{{.*}} %[[CONST]], %[[A_ADDR]] : !rec_Point, !cir.ptr<!rec_Point>
112112
// CIR: cir.call @_ZZ10paren_exprvEN5PointC1ERKS_(%[[B_ADDR]], %[[A_ADDR]]) nothrow : (!cir.ptr<!rec_Point>, !cir.ptr<!rec_Point>) -> ()
113113

114114
// LLVM: define{{.*}} void @_Z10paren_exprv()
@@ -259,7 +259,7 @@ void bin_comma() {
259259
// CIR: cir.func{{.*}} @_Z9bin_commav()
260260
// CIR: %[[A_ADDR:.*]] = cir.alloca !rec_CompleteS, !cir.ptr<!rec_CompleteS>, ["a", init]
261261
// CIR: %[[CONST:.*]] = cir.const #cir.zero : !rec_CompleteS
262-
// CIR: cir.store align(4) %[[CONST]], %[[A_ADDR]] : !rec_CompleteS, !cir.ptr<!rec_CompleteS>
262+
// CIR: cir.store{{.*}} %[[CONST]], %[[A_ADDR]] : !rec_CompleteS, !cir.ptr<!rec_CompleteS>
263263

264264
// LLVM: define{{.*}} void @_Z9bin_commav()
265265
// LLVM: %[[A_ADDR:.*]] = alloca %struct.CompleteS, i64 1, align 4
@@ -273,7 +273,7 @@ void compound_literal_expr() { CompleteS a = (CompleteS){}; }
273273

274274
// CIR: %[[A_ADDR:.*]] = cir.alloca !rec_CompleteS, !cir.ptr<!rec_CompleteS>, ["a", init]
275275
// CIR: %[[CONST:.*]] = cir.const #cir.zero : !rec_CompleteS
276-
// CIR: cir.store align(4) %[[CONST]], %[[A_ADDR]] : !rec_CompleteS, !cir.ptr<!rec_CompleteS>
276+
// CIR: cir.store{{.*}} %[[CONST]], %[[A_ADDR]] : !rec_CompleteS, !cir.ptr<!rec_CompleteS>
277277

278278
// TODO(cir): zero-initialize the padding
279279

0 commit comments

Comments
 (0)