Skip to content

Commit 21b8638

Browse files
Improved comments to explicitly-named tests per PR suggestion
1 parent ce809f6 commit 21b8638

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

llvm/test/Transforms/InstCombine/vscale_extractelement-inseltpoison.ll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ define i8 @extractelement_bitcast_insert_extra_use_bitcast(<vscale x 2 x i32> %a
8989
ret i8 %r
9090
}
9191

92+
; while it may be that the extract is out-of-bounds, any valid index
93+
; is going to yield %v (because the mask is all-zeros).
94+
9295
define i32 @extractelement_shuffle_maybe_out_of_range(i32 %v) {
9396
; CHECK-LABEL: @extractelement_shuffle_maybe_out_of_range(
9497
; CHECK-NEXT: ret i32 [[V:%.*]]

llvm/test/Transforms/InstCombine/vscale_extractelement.ll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ define i8 @extractelement_bitcast_useless_insert(<vscale x 2 x i32> %a, i32 %x)
5353
ret i8 %r
5454
}
5555

56+
; while in these tests it may be that the extract is out-of-bounds,
57+
; any valid index is going to yield %v (because the mask is all-zeros).
58+
5659
define i32 @extractelement_shuffle_maybe_out_of_range(i32 %v) {
5760
; CHECK-LABEL: @extractelement_shuffle_maybe_out_of_range(
5861
; CHECK-NEXT: ret i32 [[V:%.*]]

0 commit comments

Comments
 (0)