[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.
This commit is contained in:
@@ -23,7 +23,7 @@ define hidden i32 @_Z3barv() local_unnamed_addr #0 {
|
||||
entry:
|
||||
%b = alloca %struct.A, align 8
|
||||
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %b)
|
||||
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV1A, i64 0, inrange i32 0, i64 2), ptr %b, align 8, !tbaa !4
|
||||
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV1A, i64 0, i32 0, i64 2), ptr %b, align 8, !tbaa !4
|
||||
%call = call i32 @_Z3fooP1A(ptr nonnull %b)
|
||||
%add = add nsw i32 %call, 10
|
||||
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %b) #4
|
||||
|
||||
@@ -71,7 +71,7 @@ target triple = "x86_64-unknown-linux-gnu"
|
||||
define hidden i32 @main() {
|
||||
entry:
|
||||
%call = tail call ptr @_Znwm(i64 8)
|
||||
store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTV7Derived, i64 0, inrange i32 0, i64 2), ptr %call
|
||||
store ptr getelementptr inbounds ({ [5 x ptr] }, ptr @_ZTV7Derived, i64 0, i32 0, i64 2), ptr %call
|
||||
tail call void @_Z3fooP4Base(ptr nonnull %call)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ define i32 @_ZN1B1nEi(ptr %this, i32 %a) #0 comdat($_ZTV1B) {
|
||||
; Ensures that vtable of B is live so that we will attempt devirt.
|
||||
define dso_local i32 @use_B(ptr %a) {
|
||||
entry:
|
||||
store ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV1B, i64 0, inrange i32 0, i64 2), ptr %a, align 8
|
||||
store ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV1B, i64 0, i32 0, i64 2), ptr %a, align 8
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ define internal i32 @_ZN1B1nEi(ptr %this, i32 %a) #0 {
|
||||
; Ensures that vtable of B is live so that we will attempt devirt.
|
||||
define dso_local i32 @use_B(ptr %a) {
|
||||
entry:
|
||||
store ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV1B, i64 0, inrange i32 0, i64 2), ptr %a, align 8
|
||||
store ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV1B, i64 0, i32 0, i64 2), ptr %a, align 8
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ $_ZTV2D2 = comdat any
|
||||
define ptr @_Z2b1v() {
|
||||
entry:
|
||||
%call = tail call ptr @_Znwm(i64 8)
|
||||
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV2D1, i64 0, inrange i32 0, i64 2), ptr %call, align 8
|
||||
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV2D1, i64 0, i32 0, i64 2), ptr %call, align 8
|
||||
ret ptr %call
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ declare ptr @_Znwm(i64)
|
||||
define ptr @_Z2b2v() {
|
||||
entry:
|
||||
%call = tail call ptr @_Znwm(i64 8)
|
||||
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV2D2, i64 0, inrange i32 0, i64 2), ptr %call, align 8
|
||||
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV2D2, i64 0, i32 0, i64 2), ptr %call, align 8
|
||||
ret ptr %call
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ entry:
|
||||
%this.addr = alloca ptr, align 8
|
||||
store ptr %this, ptr %this.addr, align 8
|
||||
%this1 = load ptr, ptr %this.addr
|
||||
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV1D, i64 0, inrange i32 0, i64 2), ptr %this1, align 8
|
||||
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTV1D, i64 0, i32 0, i64 2), ptr %this1, align 8
|
||||
ret void
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@ target triple = "x86_64-grtev4-linux-gnu"
|
||||
define internal void @_ZN12_GLOBAL__N_18RealFileD2Ev(ptr %this) unnamed_addr #0 align 2 {
|
||||
entry:
|
||||
; CHECK-IR: store
|
||||
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTVN12_GLOBAL__N_18RealFileE, i64 0, inrange i32 0, i64 2), ptr %this, align 8
|
||||
%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")
|
||||
store ptr getelementptr inbounds ({ [3 x ptr] }, ptr @_ZTVN12_GLOBAL__N_18RealFileE, i64 0, i32 0, i64 2), ptr %this, align 8
|
||||
%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")
|
||||
tail call void @llvm.assume(i1 %0)
|
||||
; CHECK-IR-NEXT: ret void
|
||||
ret void
|
||||
|
||||
Reference in New Issue
Block a user