Skip to content

Commit

Permalink
[MergeFunc] Adjust GEP indices in test (NFC)
Browse files Browse the repository at this point in the history
Otherwise inbounds will be inferred, and we don't actually end
up testing the case of one gep without inbounds and one with.
  • Loading branch information
nikic committed Dec 20, 2023
1 parent a8af51d commit 836e71a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/test/Transforms/MergeFunc/constexpr.ll
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ define i1 @f2() unnamed_addr {

define ptr @f3() unnamed_addr {
; CHECK-LABEL: define ptr @f3() unnamed_addr {
; CHECK-NEXT: ret ptr getelementptr inbounds (i8, ptr @g1, i64 1)
; CHECK-NEXT: ret ptr getelementptr inbounds (i8, ptr @g1, i64 2)
;
ret ptr getelementptr (i8, ptr @g1, i64 1)
ret ptr getelementptr inbounds (i8, ptr @g1, i64 2)
}

define ptr @f4() unnamed_addr {
ret ptr getelementptr (i16, ptr @g1, i64 1)
ret ptr getelementptr (i16, ptr @g1, i64 2)
}

define ptr @f5() unnamed_addr {
ret ptr getelementptr inbounds (i8, ptr @g1, i64 1)
ret ptr getelementptr (i8, ptr @g1, i64 2)
}

define i64 @f6() unnamed_addr {
Expand Down

0 comments on commit 836e71a

Please sign in to comment.