Skip to content

Commit 77b83d3

Browse files
committed
[tests] Update Transforms/DeadStoreElim/multiblock-malloc-free.ll
This change is generated by running update_test_checks.py. It serves to make subsequent diffs easier to understand.
1 parent 96b7606 commit 77b83d3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/test/Transforms/DeadStoreElimination/multiblock-malloc-free.ll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ define void @test16(i32* noalias %P) {
2222
; CHECK-NEXT: br label [[BB3]]
2323
; CHECK: bb3:
2424
; CHECK-NEXT: call void @free(i8* [[P2]])
25-
; CHECK-NEXT: store i32 1, i32* [[P]]
25+
; CHECK-NEXT: store i32 1, i32* [[P]], align 4
2626
; CHECK-NEXT: ret void
2727
;
2828
%P2 = bitcast i32* %P to i8*
@@ -71,7 +71,7 @@ define void @test17_read_after_free(i32* noalias %P) {
7171
; CHECK-NEXT: br label [[BB3]]
7272
; CHECK: bb3:
7373
; CHECK-NEXT: call void @free(i8* [[P2]])
74-
; CHECK-NEXT: [[LV:%.*]] = load i8, i8* [[P2]]
74+
; CHECK-NEXT: [[LV:%.*]] = load i8, i8* [[P2]], align 1
7575
; CHECK-NEXT: ret void
7676
;
7777
%P2 = bitcast i32* %P to i8*
@@ -156,7 +156,7 @@ define i8* @test26() {
156156
; CHECK-NEXT: br i1 true, label [[BB2:%.*]], label [[BB3:%.*]]
157157
; CHECK: bb2:
158158
; CHECK-NEXT: [[M:%.*]] = call noalias i8* @malloc(i64 10)
159-
; CHECK-NEXT: store i8 1, i8* [[M]]
159+
; CHECK-NEXT: store i8 1, i8* [[M]], align 1
160160
; CHECK-NEXT: br label [[BB3]]
161161
; CHECK: bb3:
162162
; CHECK-NEXT: [[R:%.*]] = phi i8* [ null, [[BB1:%.*]] ], [ [[M]], [[BB2]] ]
@@ -210,7 +210,7 @@ define i8* @test28() {
210210
; CHECK-NEXT: [[MC5:%.*]] = bitcast i8* [[MC4]] to i8*
211211
; CHECK-NEXT: [[MC6:%.*]] = bitcast i8* [[MC5]] to i8*
212212
; CHECK-NEXT: [[M0:%.*]] = bitcast i8* [[MC6]] to i8*
213-
; CHECK-NEXT: store i8 2, i8* [[M]]
213+
; CHECK-NEXT: store i8 2, i8* [[M]], align 1
214214
; CHECK-NEXT: ret i8* [[M0]]
215215
;
216216
bb0:
@@ -239,7 +239,7 @@ declare %struct.NodePtrVecStruct* @NodePtrVec_new(i32)
239239
define noalias %struct.SystemCallMapElementStruct* @SystemCallMapElement_new(i8* nocapture readonly %label, i32 %initialSize) {
240240
; CHECK-LABEL: @SystemCallMapElement_new(
241241
; CHECK-NEXT: entry:
242-
; CHECK-NEXT: [[CALL:%.*]] = tail call dereferenceable_or_null(24) i8* @malloc(i64 24) #6
242+
; CHECK-NEXT: [[CALL:%.*]] = tail call dereferenceable_or_null(24) i8* @malloc(i64 24) #[[ATTR6:[0-9]+]]
243243
; CHECK-NEXT: [[TMP0:%.*]] = bitcast i8* [[CALL]] to %struct.SystemCallMapElementStruct*
244244
; CHECK-NEXT: [[TOBOOL:%.*]] = icmp eq i8* [[CALL]], null
245245
; CHECK-NEXT: br i1 [[TOBOOL]], label [[CLEANUP:%.*]], label [[IF_THEN:%.*]]
@@ -256,7 +256,7 @@ define noalias %struct.SystemCallMapElementStruct* @SystemCallMapElement_new(i8*
256256
; CHECK-NEXT: tail call void @free(i8* nonnull [[CALL]])
257257
; CHECK-NEXT: br label [[CLEANUP]]
258258
; CHECK: if.end:
259-
; CHECK-NEXT: [[CALL6:%.*]] = tail call %struct.NodePtrVecStruct* @NodePtrVec_new(i32 [[INITIALSIZE:%.*]]) #4
259+
; CHECK-NEXT: [[CALL6:%.*]] = tail call %struct.NodePtrVecStruct* @NodePtrVec_new(i32 [[INITIALSIZE:%.*]]) #[[ATTR4:[0-9]+]]
260260
; CHECK-NEXT: [[NODES:%.*]] = getelementptr inbounds i8, i8* [[CALL]], i64 16
261261
; CHECK-NEXT: [[TMP2:%.*]] = bitcast i8* [[NODES]] to %struct.NodePtrVecStruct**
262262
; CHECK-NEXT: store %struct.NodePtrVecStruct* [[CALL6]], %struct.NodePtrVecStruct** [[TMP2]], align 8
@@ -311,15 +311,15 @@ cleanup: ; preds = %entry, %if.end, %if
311311
define noalias %struct.BitfieldStruct* @Bitfield_new(i32 %bitsNeeded) {
312312
; CHECK-LABEL: @Bitfield_new(
313313
; CHECK-NEXT: entry:
314-
; CHECK-NEXT: [[CALL:%.*]] = tail call dereferenceable_or_null(16) i8* @malloc(i64 16) #6
314+
; CHECK-NEXT: [[CALL:%.*]] = tail call dereferenceable_or_null(16) i8* @malloc(i64 16) #[[ATTR6]]
315315
; CHECK-NEXT: [[TMP0:%.*]] = bitcast i8* [[CALL]] to %struct.BitfieldStruct*
316316
; CHECK-NEXT: [[TOBOOL:%.*]] = icmp eq i8* [[CALL]], null
317317
; CHECK-NEXT: br i1 [[TOBOOL]], label [[CLEANUP:%.*]], label [[IF_END:%.*]]
318318
; CHECK: if.end:
319319
; CHECK-NEXT: [[ADD:%.*]] = add nsw i32 [[BITSNEEDED:%.*]], 7
320320
; CHECK-NEXT: [[DIV:%.*]] = sdiv i32 [[ADD]], 8
321321
; CHECK-NEXT: [[CONV:%.*]] = sext i32 [[DIV]] to i64
322-
; CHECK-NEXT: [[CALL1:%.*]] = tail call i8* @calloc(i64 [[CONV]], i64 1) #7
322+
; CHECK-NEXT: [[CALL1:%.*]] = tail call i8* @calloc(i64 [[CONV]], i64 1) #[[ATTR7:[0-9]+]]
323323
; CHECK-NEXT: [[BITFIELD:%.*]] = getelementptr inbounds i8, i8* [[CALL]], i64 8
324324
; CHECK-NEXT: [[TMP1:%.*]] = bitcast i8* [[BITFIELD]] to i8**
325325
; CHECK-NEXT: store i8* [[CALL1]], i8** [[TMP1]], align 8

0 commit comments

Comments
 (0)