Skip to content

Commit e4b2735

Browse files
committed
[ThinLTO] Drop inrange attribute from tests (NFC)
The inrange attribute is not relevant to the optimizations being tested here. Additionally, all the inrange attributes in these files don't actually carry any additional information, as the "range" covers the whole object.
1 parent 20b15e6 commit e4b2735

7 files changed

+9
-9
lines changed

llvm/test/ThinLTO/X86/Inputs/devirt_single_hybrid_bar.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ define hidden i32 @_Z3barv() local_unnamed_addr #0 {
2323
entry:
2424
%b = alloca %struct.A, align 8
2525
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %b)
26-
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV1A, i64 0, inrange i32 0, i64 2), ptr %b, align 8, !tbaa !4
26+
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV1A, i64 0, i32 0, i64 2), ptr %b, align 8, !tbaa !4
2727
%call = call i32 @_Z3fooP1A(ptr nonnull %b)
2828
%add = add nsw i32 %call, 10
2929
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %b) #4

llvm/test/ThinLTO/X86/devirt_after_filtering_unreachable.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ target triple = "x86_64-unknown-linux-gnu"
7171
define hidden i32 @main() {
7272
entry:
7373
%call = tail call ptr @_Znwm(i64 8)
74-
store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTV7Derived, i64 0, inrange i32 0, i64 2), ptr %call
74+
store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTV7Derived, i64 0, i32 0, i64 2), ptr %call
7575
tail call void @_Z3fooP4Base(ptr nonnull %call)
7676
ret i32 0
7777
}

llvm/test/ThinLTO/X86/devirt_external_comdat_same_guid.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ define i32 @_ZN1B1nEi(ptr %this, i32 %a) #0 comdat($_ZTV1B) {
5151
; Ensures that vtable of B is live so that we will attempt devirt.
5252
define dso_local i32 @use_B(ptr %a) {
5353
entry:
54-
store ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV1B, i64 0, inrange i32 0, i64 2), ptr %a, align 8
54+
store ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV1B, i64 0, i32 0, i64 2), ptr %a, align 8
5555
ret i32 0
5656
}
5757

llvm/test/ThinLTO/X86/devirt_local_same_guid.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ define internal i32 @_ZN1B1nEi(ptr %this, i32 %a) #0 {
3737
; Ensures that vtable of B is live so that we will attempt devirt.
3838
define dso_local i32 @use_B(ptr %a) {
3939
entry:
40-
store ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV1B, i64 0, inrange i32 0, i64 2), ptr %a, align 8
40+
store ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV1B, i64 0, i32 0, i64 2), ptr %a, align 8
4141
ret i32 0
4242
}
4343

llvm/test/ThinLTO/X86/lower_type_test_phi.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ $_ZTV2D2 = comdat any
117117
define ptr @_Z2b1v() {
118118
entry:
119119
%call = tail call ptr @_Znwm(i64 8)
120-
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV2D1, i64 0, inrange i32 0, i64 2), ptr %call, align 8
120+
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV2D1, i64 0, i32 0, i64 2), ptr %call, align 8
121121
ret ptr %call
122122
}
123123

@@ -126,7 +126,7 @@ declare ptr @_Znwm(i64)
126126
define ptr @_Z2b2v() {
127127
entry:
128128
%call = tail call ptr @_Znwm(i64 8)
129-
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV2D2, i64 0, inrange i32 0, i64 2), ptr %call, align 8
129+
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV2D2, i64 0, i32 0, i64 2), ptr %call, align 8
130130
ret ptr %call
131131
}
132132

llvm/test/ThinLTO/X86/nodevirt-nonpromoted-typeid.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ entry:
5555
%this.addr = alloca ptr, align 8
5656
store ptr %this, ptr %this.addr, align 8
5757
%this1 = load ptr, ptr %this.addr
58-
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV1D, i64 0, inrange i32 0, i64 2), ptr %this1, align 8
58+
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV1D, i64 0, i32 0, i64 2), ptr %this1, align 8
5959
ret void
6060
}
6161

llvm/test/ThinLTO/X86/type_test_noindircall.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ target triple = "x86_64-grtev4-linux-gnu"
3838
define internal void @_ZN12_GLOBAL__N_18RealFileD2Ev(ptr %this) unnamed_addr #0 align 2 {
3939
entry:
4040
; CHECK-IR: store
41-
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTVN12_GLOBAL__N_18RealFileE, i64 0, inrange i32 0, i64 2), ptr %this, align 8
42-
%0 = tail call i1 @llvm.type.test(ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTVN12_GLOBAL__N_18RealFileE, i64 0, inrange i32 0, i64 2), metadata !"4$09c6cc733fc6accb91e5d7b87cb48f2d")
41+
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTVN12_GLOBAL__N_18RealFileE, i64 0, i32 0, i64 2), ptr %this, align 8
42+
%0 = tail call i1 @llvm.type.test(ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTVN12_GLOBAL__N_18RealFileE, i64 0, i32 0, i64 2), metadata !"4$09c6cc733fc6accb91e5d7b87cb48f2d")
4343
tail call void @llvm.assume(i1 %0)
4444
; CHECK-IR-NEXT: ret void
4545
ret void

0 commit comments

Comments
 (0)