[llvm] 5a7aab6 - [LV][NFC] Remove more unused function attributes from tests (#190786)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 01:56:05 PDT 2026
Author: David Sherwood
Date: 2026-04-08T09:56:00+01:00
New Revision: 5a7aab6e9efc5736ed37f24f8546e52d6e192abe
URL: https://github.com/llvm/llvm-project/commit/5a7aab6e9efc5736ed37f24f8546e52d6e192abe
DIFF: https://github.com/llvm/llvm-project/commit/5a7aab6e9efc5736ed37f24f8546e52d6e192abe.diff
LOG: [LV][NFC] Remove more unused function attributes from tests (#190786)
Following on from PR #188185 I've removed some more function attributes
from tests that weren't adding any value. As part of this patch I've
also removed some unnecessary `Function Attrs:` comments that live above
functions.
I suspect that there are other attributes that can be removed, for
example see ARM/arm-ieee-vectorize.ll. However, I haven't had chance to
look into these yet as they are more FP and/or target specific and
perhaps require more thought.
Added:
Modified:
llvm/test/Transforms/LoopVectorize/2012-10-20-infloop.ll
llvm/test/Transforms/LoopVectorize/AArch64/aarch64-unroll.ll
llvm/test/Transforms/LoopVectorize/AArch64/arm64-unroll.ll
llvm/test/Transforms/LoopVectorize/AArch64/partial-reduce-chained.ll
llvm/test/Transforms/LoopVectorize/AArch64/pr33053.ll
llvm/test/Transforms/LoopVectorize/AArch64/pr36032.ll
llvm/test/Transforms/LoopVectorize/AArch64/sve-interleaved-accesses-cost.ll
llvm/test/Transforms/LoopVectorize/AMDGPU/divergent-runtime-check.ll
llvm/test/Transforms/LoopVectorize/AMDGPU/unroll-in-loop-vectorizer.ll
llvm/test/Transforms/LoopVectorize/ARM/active-lane-mask.ll
llvm/test/Transforms/LoopVectorize/ARM/arm-ieee-vectorize.ll
llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll
llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll
llvm/test/Transforms/LoopVectorize/LoongArch/loongarch-interleaved.ll
llvm/test/Transforms/LoopVectorize/PowerPC/interleave_IC.ll
llvm/test/Transforms/LoopVectorize/PowerPC/massv-altivec.ll
llvm/test/Transforms/LoopVectorize/PowerPC/massv-calls.ll
llvm/test/Transforms/LoopVectorize/PowerPC/massv-unsupported.ll
llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll
llvm/test/Transforms/LoopVectorize/PowerPC/stride-vectorization.ll
llvm/test/Transforms/LoopVectorize/PowerPC/vectorize-bswap.ll
llvm/test/Transforms/LoopVectorize/PowerPC/vectorize-only-for-real.ll
llvm/test/Transforms/LoopVectorize/PowerPC/vsx-tsvc-s173.ll
llvm/test/Transforms/LoopVectorize/RISCV/riscv-interleaved.ll
llvm/test/Transforms/LoopVectorize/RISCV/riscv-unroll.ll
llvm/test/Transforms/LoopVectorize/RISCV/short-trip-count.ll
llvm/test/Transforms/LoopVectorize/RISCV/unroll-in-loop-vectorizer.ll
llvm/test/Transforms/LoopVectorize/X86/CostModel/interleaved-load-half.ll
llvm/test/Transforms/LoopVectorize/X86/already-vectorized.ll
llvm/test/Transforms/LoopVectorize/X86/consecutive-ptr-cg-bug.ll
llvm/test/Transforms/LoopVectorize/X86/fp_to_sint8-cost-model.ll
llvm/test/Transforms/LoopVectorize/X86/int128_no_gather.ll
llvm/test/Transforms/LoopVectorize/X86/interleaved-accesses-use-after-free.ll
llvm/test/Transforms/LoopVectorize/X86/masked_load_store.ll
llvm/test/Transforms/LoopVectorize/X86/no-vector.ll
llvm/test/Transforms/LoopVectorize/X86/no_fpmath.ll
llvm/test/Transforms/LoopVectorize/X86/no_fpmath_with_hotness.ll
llvm/test/Transforms/LoopVectorize/X86/pr35432.ll
llvm/test/Transforms/LoopVectorize/X86/pr48340.ll
llvm/test/Transforms/LoopVectorize/X86/register-assumption.ll
llvm/test/Transforms/LoopVectorize/X86/scatter_crash.ll
llvm/test/Transforms/LoopVectorize/X86/strided_load_cost.ll
llvm/test/Transforms/LoopVectorize/X86/tail_loop_folding.ll
llvm/test/Transforms/LoopVectorize/X86/uint64_to_fp64-cost-model.ll
llvm/test/Transforms/LoopVectorize/X86/vector_ptr_load_store.ll
llvm/test/Transforms/LoopVectorize/X86/vectorization-remarks-missed.ll
llvm/test/Transforms/LoopVectorize/assume.ll
llvm/test/Transforms/LoopVectorize/conditional-assignment.ll
llvm/test/Transforms/LoopVectorize/control-flow.ll
llvm/test/Transforms/LoopVectorize/dbg.value.ll
llvm/test/Transforms/LoopVectorize/dereferenceable-info-from-assumption-variable-size.ll
llvm/test/Transforms/LoopVectorize/diag-missing-instr-debug-loc.ll
llvm/test/Transforms/LoopVectorize/diag-with-hotness-info-2.ll
llvm/test/Transforms/LoopVectorize/diag-with-hotness-info.ll
llvm/test/Transforms/LoopVectorize/ee-crash.ll
llvm/test/Transforms/LoopVectorize/global_alias.ll
llvm/test/Transforms/LoopVectorize/if-reduction.ll
llvm/test/Transforms/LoopVectorize/incorrect-dom-info.ll
llvm/test/Transforms/LoopVectorize/induction.ll
llvm/test/Transforms/LoopVectorize/int_sideeffect.ll
llvm/test/Transforms/LoopVectorize/no_array_bounds.ll
llvm/test/Transforms/LoopVectorize/no_switch.ll
llvm/test/Transforms/LoopVectorize/no_switch_disable_vectorization.ll
llvm/test/Transforms/LoopVectorize/pointer-induction.ll
llvm/test/Transforms/LoopVectorize/reuse-lcssa-phi-scev-expansion.ll
llvm/test/Transforms/LoopVectorize/scalable-assume.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/LoopVectorize/2012-10-20-infloop.ll b/llvm/test/Transforms/LoopVectorize/2012-10-20-infloop.ll
index 36a1ce2b5f08f..57c2d62f7661b 100644
--- a/llvm/test/Transforms/LoopVectorize/2012-10-20-infloop.ll
+++ b/llvm/test/Transforms/LoopVectorize/2012-10-20-infloop.ll
@@ -1,7 +1,7 @@
; RUN: opt < %s -passes=loop-vectorize,dce -force-vector-interleave=1 -force-vector-width=4
; Check that we don't fall into an infinite loop.
-define void @test() nounwind {
+define void @test() {
entry:
br label %for.body
@@ -12,7 +12,7 @@ for.body:
-define void @test2() nounwind {
+define void @test2() {
entry:
br label %for.body
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/aarch64-unroll.ll b/llvm/test/Transforms/LoopVectorize/AArch64/aarch64-unroll.ll
index 4df0ad9e0eb19..0a6bf1e504699 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/aarch64-unroll.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/aarch64-unroll.ll
@@ -1,7 +1,6 @@
; RUN: opt < %s -passes=loop-vectorize -mtriple=aarch64-none-linux-gnu -mattr=+neon -S | FileCheck %s
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
-; Function Attrs: nounwind
define ptr @array_add(ptr noalias nocapture readonly %a, ptr noalias nocapture readonly %b, ptr %c, i32 %size) {
;CHECK-LABEL: array_add
;CHECK: load <4 x i32>
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/arm64-unroll.ll b/llvm/test/Transforms/LoopVectorize/AArch64/arm64-unroll.ll
index 8e963fc5997b8..b6a56df837bb8 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/arm64-unroll.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/arm64-unroll.ll
@@ -1,7 +1,6 @@
; RUN: opt < %s -passes=loop-vectorize -mtriple=arm64-none-linux-gnu -mattr=+neon -S | FileCheck %s
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
-; Function Attrs: nounwind
define ptr @array_add(ptr noalias nocapture readonly %a, ptr noalias nocapture readonly %b, ptr %c, i32 %size) {
;CHECK-LABEL: array_add
;CHECK: load <4 x i32>
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/partial-reduce-chained.ll b/llvm/test/Transforms/LoopVectorize/AArch64/partial-reduce-chained.ll
index 98d3ee86cf276..76b43215a593c 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/partial-reduce-chained.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/partial-reduce-chained.ll
@@ -7,7 +7,6 @@
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-none-unknown-elf"
-; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) vscale_range(1,16)
define i32 @chained_partial_reduce_add_sub(ptr %a, ptr %b, ptr %c, i32 %N) #0 {
; CHECK-NEON-LABEL: define i32 @chained_partial_reduce_add_sub(
; CHECK-NEON-SAME: ptr [[A:%.*]], ptr [[B:%.*]], ptr [[C:%.*]], i32 [[N:%.*]]) #[[ATTR0:[0-9]+]] {
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/pr33053.ll b/llvm/test/Transforms/LoopVectorize/AArch64/pr33053.ll
index 11f7a7e5f02d0..8a0cfa74a3ee6 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/pr33053.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/pr33053.ll
@@ -5,19 +5,19 @@ target triple = "aarch64--linux-gnu"
@b = common global i32 0, align 4
@a = common global ptr null, align 8
-define i32 @fn1() #0 {
+define i32 @fn1() {
; We expect the backend to expand all reductions.
; CHECK: @llvm.vector.reduce
entry:
br label %for.body.lr.ph
-for.body.lr.ph: ; preds = %entry
+for.body.lr.ph:
%1 = load ptr, ptr @a, align 8, !tbaa !5
%2 = load i32, ptr @b, align 4, !tbaa !1
%3 = sext i32 %2 to i64
br label %for.body
-for.body: ; preds = %for.body.lr.ph, %for.body
+for.body:
%indvars.iv = phi i64 [ 0, %for.body.lr.ph ], [ %indvars.iv.next, %for.body ]
%d.043 = phi i16 [ 0, %for.body.lr.ph ], [ %.sink28, %for.body ]
%c.042 = phi i16 [ 0, %for.body.lr.ph ], [ %c.0., %for.body ]
@@ -31,16 +31,12 @@ for.body: ; preds = %for.body.lr.ph, %fo
%cmp = icmp slt i64 %indvars.iv.next, %3
br i1 %cmp, label %for.body, label %for.end
-for.end: ; preds = %for.body
+for.end:
%cmp26 = icmp sgt i16 %c.0., %.sink28
%conv27 = zext i1 %cmp26 to i32
ret i32 %conv27
}
-attributes #0 = { norecurse nounwind readonly "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+neon" "use-soft-float"="false" }
-!llvm.ident = !{!0}
-
-!0 = !{!"clang"}
!1 = !{!2, !2, i64 0}
!2 = !{!"int", !3, i64 0}
!3 = !{!"omnipotent char", !4, i64 0}
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/pr36032.ll b/llvm/test/Transforms/LoopVectorize/AArch64/pr36032.ll
index 1c04cc0a00307..baa7064d4c8ca 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/pr36032.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/pr36032.ll
@@ -10,8 +10,7 @@ target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
@c = global [6 x i8] zeroinitializer, align 1
@b = internal global %struct.anon zeroinitializer, align 1
-; Function Attrs: noreturn nounwind
-define void @_Z1dv() #0 {
+define void @_Z1dv() {
; CHECK-LABEL: @_Z1dv(
; CHECK-NEXT: entry:
; CHECK-NEXT: [[CALL:%.*]] = tail call ptr @"_ZN3$_01aEv"(ptr nonnull @b)
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/sve-interleaved-accesses-cost.ll b/llvm/test/Transforms/LoopVectorize/AArch64/sve-interleaved-accesses-cost.ll
index 564fba65e6238..f9462a795a010 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/sve-interleaved-accesses-cost.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/sve-interleaved-accesses-cost.ll
@@ -5,7 +5,6 @@ target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:
; Test cases for modeling interleave access costs.
-; Function Attrs: vscale_range(2,2)
define void @test_masked_interleave(ptr noalias %A, ptr noalias %B, ptr noalias %C) #0 {
; CHECK-LABEL: define void @test_masked_interleave(
; CHECK-SAME: ptr noalias [[A:%.*]], ptr noalias [[B:%.*]], ptr noalias [[C:%.*]]) #[[ATTR0:[0-9]+]] {
diff --git a/llvm/test/Transforms/LoopVectorize/AMDGPU/divergent-runtime-check.ll b/llvm/test/Transforms/LoopVectorize/AMDGPU/divergent-runtime-check.ll
index b1f2ccd556e21..497a422826d89 100644
--- a/llvm/test/Transforms/LoopVectorize/AMDGPU/divergent-runtime-check.ll
+++ b/llvm/test/Transforms/LoopVectorize/AMDGPU/divergent-runtime-check.ll
@@ -6,7 +6,7 @@
; GCN-NOT: store <2 x half>
; REMARK: remark: <unknown>:0:0: loop not vectorized: runtime pointer checks needed. Not enabled for divergent target
-define amdgpu_kernel void @runtime_check_divergent_target(ptr addrspace(1) nocapture %a, ptr addrspace(1) nocapture %b) #0 {
+define amdgpu_kernel void @runtime_check_divergent_target(ptr addrspace(1) nocapture %a, ptr addrspace(1) nocapture %b) {
entry:
br label %for.body
@@ -26,4 +26,3 @@ for.end: ; preds = %for.body, %entry
ret void
}
-attributes #0 = { nounwind }
diff --git a/llvm/test/Transforms/LoopVectorize/AMDGPU/unroll-in-loop-vectorizer.ll b/llvm/test/Transforms/LoopVectorize/AMDGPU/unroll-in-loop-vectorizer.ll
index ac67257fb2a40..78959a864630e 100644
--- a/llvm/test/Transforms/LoopVectorize/AMDGPU/unroll-in-loop-vectorizer.ll
+++ b/llvm/test/Transforms/LoopVectorize/AMDGPU/unroll-in-loop-vectorizer.ll
@@ -7,7 +7,7 @@
; CHECK: store i32
; CHECK-NOT: store i32
; CHECK: ret
-define amdgpu_kernel void @small_loop(ptr nocapture %inArray, i32 %size) nounwind {
+define amdgpu_kernel void @small_loop(ptr nocapture %inArray, i32 %size) {
entry:
%0 = icmp sgt i32 %size, 0
br i1 %0, label %loop, label %exit
diff --git a/llvm/test/Transforms/LoopVectorize/ARM/active-lane-mask.ll b/llvm/test/Transforms/LoopVectorize/ARM/active-lane-mask.ll
index 583e1562327a7..3ffafa404269b 100644
--- a/llvm/test/Transforms/LoopVectorize/ARM/active-lane-mask.ll
+++ b/llvm/test/Transforms/LoopVectorize/ARM/active-lane-mask.ll
@@ -60,7 +60,7 @@ for.end:
ret void
}
-attributes #0 = { nofree norecurse nounwind "target-features"="+armv8.1-m.main,+mve.fp" }
+attributes #0 = { nofree "target-features"="+armv8.1-m.main,+mve.fp" }
!1 = distinct !{!1, !2, !3}
!2 = !{!"llvm.loop.vectorize.width", i32 16}
diff --git a/llvm/test/Transforms/LoopVectorize/ARM/arm-ieee-vectorize.ll b/llvm/test/Transforms/LoopVectorize/ARM/arm-ieee-vectorize.ll
index 25799183b1a02..01d9542c6266f 100644
--- a/llvm/test/Transforms/LoopVectorize/ARM/arm-ieee-vectorize.ll
+++ b/llvm/test/Transforms/LoopVectorize/ARM/arm-ieee-vectorize.ll
@@ -313,7 +313,7 @@ for.body: ; preds = %entry, %for.body
%0 = load float, ptr %arrayidx, align 4
%arrayidx1 = getelementptr inbounds float, ptr %B, i32 %i.011
%1 = load float, ptr %arrayidx1, align 4
- %fabsf = tail call fast float @fabsf(float %1) #2
+ %fabsf = tail call fast float @fabsf(float %1) #1
%conv3 = fmul fast float %fabsf, %0
%arrayidx4 = getelementptr inbounds float, ptr %C, i32 %i.011
store float %conv3, ptr %arrayidx4, align 4
@@ -327,5 +327,4 @@ for.end: ; preds = %for.body, %entry
declare float @fabsf(float)
-attributes #1 = { nounwind readnone "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="cortex-a8" "target-features"="+dsp,+neon,+vfp3" "use-soft-float"="false" }
-attributes #2 = { nounwind readnone "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="cortex-a8" "target-features"="+dsp,+neon,+vfp3" "use-soft-float"="false" }
+attributes #1 = { readnone }
diff --git a/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll b/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll
index 6b201fdf21d21..199f636539b21 100644
--- a/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll
+++ b/llvm/test/Transforms/LoopVectorize/Hexagon/maximum-vf-crash.ll
@@ -7,7 +7,6 @@
target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"
-; Function Attrs: optsize
define i32 @f(ptr %src) #0 {
entry:
br label %loop
diff --git a/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll b/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll
index 480a69c465d25..4e6f8c23ee805 100644
--- a/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll
+++ b/llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll
@@ -14,8 +14,7 @@ target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i
declare void @llvm.lifetime.start.p0(ptr nocapture) #0
declare void @llvm.lifetime.end.p0(ptr nocapture) #0
-; Function Attrs: nounwind
-define hidden fastcc void @f0(ptr nocapture %a0, i32 %a1, i32 %a2, i32 %a3, i32 %a4, i8 zeroext %a5) unnamed_addr #1 {
+define hidden fastcc void @f0(ptr nocapture %a0, i32 %a1, i32 %a2, i32 %a3, i32 %a4, i8 zeroext %a5) #1 {
b0:
%v0 = alloca [4 x [9 x i16]], align 8
call void @llvm.lifetime.start.p0(ptr nonnull %v0) #2
@@ -147,13 +146,12 @@ b1: ; preds = %b1, %b0
br i1 %v120, label %b2, label %b1
b2: ; preds = %b1, %b0
- call void @llvm.lifetime.end.p0(ptr nonnull %v0) #2
+ call void @llvm.lifetime.end.p0(ptr nonnull %v0)
ret void
}
-attributes #0 = { argmemonly nounwind }
-attributes #1 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx-length64b,+hvxv60" }
-attributes #2 = { nounwind }
+attributes #0 = { argmemonly }
+attributes #1 = { "target-cpu"="hexagonv60" "target-features"="+hvx-length64b,+hvxv60" }
!llvm.module.flags = !{!0}
diff --git a/llvm/test/Transforms/LoopVectorize/LoongArch/loongarch-interleaved.ll b/llvm/test/Transforms/LoopVectorize/LoongArch/loongarch-interleaved.ll
index 1de6e128d22f6..f697c7f4617d6 100644
--- a/llvm/test/Transforms/LoopVectorize/LoongArch/loongarch-interleaved.ll
+++ b/llvm/test/Transforms/LoopVectorize/LoongArch/loongarch-interleaved.ll
@@ -5,7 +5,6 @@
; CHECK-LABEL: foo
; CHECK: %{{.*}} = add {{.*}}, 8
-; Function Attrs: nofree norecurse nosync nounwind writeonly
define void @foo(i32 signext %n, ptr nocapture %A) #0 {
entry:
%cmp5 = icmp sgt i32 %n, 0
diff --git a/llvm/test/Transforms/LoopVectorize/PowerPC/interleave_IC.ll b/llvm/test/Transforms/LoopVectorize/PowerPC/interleave_IC.ll
index c1acb98b425d8..f03edf4f14807 100644
--- a/llvm/test/Transforms/LoopVectorize/PowerPC/interleave_IC.ll
+++ b/llvm/test/Transforms/LoopVectorize/PowerPC/interleave_IC.ll
@@ -20,7 +20,7 @@
target datalayout = "e-m:e-i64:64-n32:64"
target triple = "powerpc64le-unknown-linux-gnu"
-define void @test(ptr %arg, ptr %arg1) align 2 {
+define void @test(ptr %arg, ptr %arg1) {
bb:
%tpm15 = load ptr, ptr %arg, align 8
%tpm19 = load ptr, ptr %arg1, align 8
diff --git a/llvm/test/Transforms/LoopVectorize/PowerPC/massv-altivec.ll b/llvm/test/Transforms/LoopVectorize/PowerPC/massv-altivec.ll
index 3f533f15fb83e..eebf7dfbe23ec 100644
--- a/llvm/test/Transforms/LoopVectorize/PowerPC/massv-altivec.ll
+++ b/llvm/test/Transforms/LoopVectorize/PowerPC/massv-altivec.ll
@@ -3,11 +3,11 @@
target datalayout = "e-m:e-i64:64-n32:64"
target triple = "powerpc64le-unknown-linux-gnu"
-declare double @cbrt(double) #0
-declare float @cbrtf(float) #0
+declare double @cbrt(double)
+declare float @cbrtf(float)
-declare double @atanh(double) #0
-declare float @atanhf(float) #0
+declare double @atanh(double)
+declare float @atanhf(float)
; MASSV is unsupported for AltiVec.
; Check that massv entries are not generated.
@@ -102,5 +102,3 @@ for.body:
for.end:
ret void
}
-
-attributes #0 = { nounwind }
diff --git a/llvm/test/Transforms/LoopVectorize/PowerPC/massv-calls.ll b/llvm/test/Transforms/LoopVectorize/PowerPC/massv-calls.ll
index a5df23296440d..c90db2bbb4dbe 100644
--- a/llvm/test/Transforms/LoopVectorize/PowerPC/massv-calls.ll
+++ b/llvm/test/Transforms/LoopVectorize/PowerPC/massv-calls.ll
@@ -1,90 +1,90 @@
; RUN: opt -vector-library=MASSV -mtriple=powerpc64le-unknown-linux-gnu -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s
; RUN: opt -vector-library=MASSV -vec-extabi -mattr=+altivec -mcpu=ppc64 -mtriple=powerpc64-ibm-aix-xcoff -passes=inject-tli-mappings,loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s
-declare double @cbrt(double) #0
-declare float @cbrtf(float) #0
+declare double @cbrt(double)
+declare float @cbrtf(float)
-declare double @pow(double, double) #0
-declare double @llvm.pow.f64(double, double) #0
-declare float @powf(float, float) #0
-declare float @llvm.pow.f32(float, float) #0
+declare double @pow(double, double)
+declare double @llvm.pow.f64(double, double)
+declare float @powf(float, float)
+declare float @llvm.pow.f32(float, float)
-declare double @sqrt(double) #0
-declare float @sqrtf(float) #0
+declare double @sqrt(double)
+declare float @sqrtf(float)
-declare double @exp(double) #0
-declare double @llvm.exp.f64(double) #0
-declare float @expf(float) #0
-declare float @llvm.exp.f32(float) #0
+declare double @exp(double)
+declare double @llvm.exp.f64(double)
+declare float @expf(float)
+declare float @llvm.exp.f32(float)
-declare double @exp2(double) #0
-declare double @llvm.exp2.f64(double) #0
-declare float @exp2f(float) #0
-declare float @llvm.exp2.f32(float) #0
+declare double @exp2(double)
+declare double @llvm.exp2.f64(double)
+declare float @exp2f(float)
+declare float @llvm.exp2.f32(float)
-declare double @expm1(double) #0
-declare float @expm1f(float) #0
+declare double @expm1(double)
+declare float @expm1f(float)
-declare double @log(double) #0
-declare double @llvm.log.f64(double) #0
-declare float @logf(float) #0
-declare float @llvm.log.f32(float) #0
+declare double @log(double)
+declare double @llvm.log.f64(double)
+declare float @logf(float)
+declare float @llvm.log.f32(float)
-declare double @log1p(double) #0
-declare float @log1pf(float) #0
+declare double @log1p(double)
+declare float @log1pf(float)
-declare double @log10(double) #0
-declare double @llvm.log10.f64(double) #0
-declare float @log10f(float) #0
-declare float @llvm.log10.f32(float) #0
+declare double @log10(double)
+declare double @llvm.log10.f64(double)
+declare float @log10f(float)
+declare float @llvm.log10.f32(float)
-declare double @log2(double) #0
-declare double @llvm.log2.f64(double) #0
-declare float @log2f(float) #0
-declare float @llvm.log2.f32(float) #0
+declare double @log2(double)
+declare double @llvm.log2.f64(double)
+declare float @log2f(float)
+declare float @llvm.log2.f32(float)
-declare double @sin(double) #0
-declare double @llvm.sin.f64(double) #0
-declare float @sinf(float) #0
-declare float @llvm.sin.f32(float) #0
+declare double @sin(double)
+declare double @llvm.sin.f64(double)
+declare float @sinf(float)
+declare float @llvm.sin.f32(float)
-declare double @cos(double) #0
-declare double @llvm.cos.f64(double) #0
-declare float @cosf(float) #0
-declare float @llvm.cos.f32(float) #0
+declare double @cos(double)
+declare double @llvm.cos.f64(double)
+declare float @cosf(float)
+declare float @llvm.cos.f32(float)
-declare double @tan(double) #0
-declare float @tanf(float) #0
+declare double @tan(double)
+declare float @tanf(float)
-declare double @asin(double) #0
-declare float @asinf(float) #0
+declare double @asin(double)
+declare float @asinf(float)
-declare double @acos(double) #0
-declare float @acosf(float) #0
+declare double @acos(double)
+declare float @acosf(float)
-declare double @atan(double) #0
-declare float @atanf(float) #0
+declare double @atan(double)
+declare float @atanf(float)
-declare double @atan2(double, double) #0
-declare float @atan2f(float, float) #0
+declare double @atan2(double, double)
+declare float @atan2f(float, float)
-declare double @sinh(double) #0
-declare float @sinhf(float) #0
+declare double @sinh(double)
+declare float @sinhf(float)
-declare double @cosh(double) #0
-declare float @coshf(float) #0
+declare double @cosh(double)
+declare float @coshf(float)
-declare double @tanh(double) #0
-declare float @tanhf(float) #0
+declare double @tanh(double)
+declare float @tanhf(float)
-declare double @asinh(double) #0
-declare float @asinhf(float) #0
+declare double @asinh(double)
+declare float @asinhf(float)
-declare double @acosh(double) #0
-declare float @acoshf(float) #0
+declare double @acosh(double)
+declare float @acoshf(float)
-declare double @atanh(double) #0
-declare float @atanhf(float) #0
+declare double @atanh(double)
+declare float @atanhf(float)
define void @cbrt_f64(ptr nocapture %varray) {
; CHECK-LABEL: @cbrt_f64(
@@ -1565,5 +1565,3 @@ for.body:
for.end:
ret void
}
-
-attributes #0 = { nounwind }
diff --git a/llvm/test/Transforms/LoopVectorize/PowerPC/massv-unsupported.ll b/llvm/test/Transforms/LoopVectorize/PowerPC/massv-unsupported.ll
index dde36970f9b95..7e85841c420aa 100644
--- a/llvm/test/Transforms/LoopVectorize/PowerPC/massv-unsupported.ll
+++ b/llvm/test/Transforms/LoopVectorize/PowerPC/massv-unsupported.ll
@@ -108,5 +108,3 @@ for.body:
for.end:
ret void
}
-
-attributes #0 = { nounwind }
diff --git a/llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll b/llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll
index a92c7894de93c..d69d900b49732 100644
--- a/llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll
+++ b/llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll
@@ -220,7 +220,7 @@ define void @double_(ptr nocapture %A, i32 %n) {
ret void
}
-define ppc_fp128 @fp128_(ptr nocapture %n, ppc_fp128 %d) nounwind readonly {
+define ppc_fp128 @fp128_(ptr nocapture %n, ppc_fp128 %d) readonly {
;CHECK-LABEL: fp128_
;CHECK: LV(REG): VF = 1
;CHECK: LV(REG): Found max usage: 2 item
diff --git a/llvm/test/Transforms/LoopVectorize/PowerPC/stride-vectorization.ll b/llvm/test/Transforms/LoopVectorize/PowerPC/stride-vectorization.ll
index e10acf43ff8a9..40bd5a91fbbcd 100644
--- a/llvm/test/Transforms/LoopVectorize/PowerPC/stride-vectorization.ll
+++ b/llvm/test/Transforms/LoopVectorize/PowerPC/stride-vectorization.ll
@@ -2,7 +2,6 @@
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64-unknown-linux-gnu"
-; Function Attrs: nounwind
define void @foo(ptr noalias nocapture %a, ptr noalias nocapture readonly %b) #0 {
entry:
br label %for.body
@@ -32,5 +31,5 @@ for.body: ; preds = %for.body, %entry
br i1 %exitcond, label %for.cond.cleanup, label %for.body
}
-attributes #0 = { nounwind "target-cpu"="pwr8" }
+attributes #0 = { "target-cpu"="pwr8" }
diff --git a/llvm/test/Transforms/LoopVectorize/PowerPC/vectorize-bswap.ll b/llvm/test/Transforms/LoopVectorize/PowerPC/vectorize-bswap.ll
index c804e301b08fd..4218f111841bd 100644
--- a/llvm/test/Transforms/LoopVectorize/PowerPC/vectorize-bswap.ll
+++ b/llvm/test/Transforms/LoopVectorize/PowerPC/vectorize-bswap.ll
@@ -83,5 +83,4 @@ for.end: ; preds = %for.cond.cleanup
ret void
}
-; Function Attrs: nounwind readnone speculatable willreturn
declare i32 @llvm.bswap.i32(i32)
diff --git a/llvm/test/Transforms/LoopVectorize/PowerPC/vectorize-only-for-real.ll b/llvm/test/Transforms/LoopVectorize/PowerPC/vectorize-only-for-real.ll
index 6b72f20d51b84..bdfea1f195ebe 100644
--- a/llvm/test/Transforms/LoopVectorize/PowerPC/vectorize-only-for-real.ll
+++ b/llvm/test/Transforms/LoopVectorize/PowerPC/vectorize-only-for-real.ll
@@ -2,7 +2,6 @@
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64le-unknown-linux"
-; Function Attrs: nounwind
define zeroext i32 @test() #0 {
; CHECK-LABEL: @test
; CHECK-NOT: x i32>
@@ -10,12 +9,12 @@ define zeroext i32 @test() #0 {
entry:
%a = alloca [1600 x i32], align 4
%c = alloca [1600 x i32], align 4
- call void @llvm.lifetime.start(ptr %a) #3
+ call void @llvm.lifetime.start(ptr %a)
br label %for.body
for.cond.cleanup: ; preds = %for.body
- call void @llvm.lifetime.start(ptr %c) #3
- %call = call signext i32 @bar(ptr %a, ptr %c) #3
+ call void @llvm.lifetime.start(ptr %c)
+ %call = call signext i32 @bar(ptr %a, ptr %c)
br label %for.body6
for.body: ; preds = %for.body, %entry
@@ -28,8 +27,8 @@ for.body: ; preds = %for.body, %entry
br i1 %exitcond27, label %for.cond.cleanup, label %for.body
for.cond.cleanup5: ; preds = %for.body6
- call void @llvm.lifetime.end(ptr nonnull %c) #3
- call void @llvm.lifetime.end(ptr %a) #3
+ call void @llvm.lifetime.end(ptr nonnull %c)
+ call void @llvm.lifetime.end(ptr %a)
ret i32 %add
for.body6: ; preds = %for.body6, %for.cond.cleanup
@@ -43,16 +42,12 @@ for.body6: ; preds = %for.body6, %for.con
br i1 %exitcond, label %for.cond.cleanup5, label %for.body6
}
-; Function Attrs: argmemonly nounwind
declare void @llvm.lifetime.start(ptr nocapture) #1
-
-; Function Attrs: argmemonly nounwind
declare void @llvm.lifetime.end(ptr nocapture) #1
declare signext i32 @bar(ptr, ptr) #2
-attributes #0 = { nounwind "target-features"="-altivec,-bpermd,-crypto,-direct-move,-extdiv,-power8-vector,-vsx" }
-attributes #1 = { argmemonly nounwind }
+attributes #0 = { "target-features"="-altivec,-bpermd,-crypto,-direct-move,-extdiv,-power8-vector,-vsx" }
+attributes #1 = { argmemonly }
attributes #2 = { "target-features"="-altivec,-bpermd,-crypto,-direct-move,-extdiv,-power8-vector,-vsx" }
-attributes #3 = { nounwind }
diff --git a/llvm/test/Transforms/LoopVectorize/PowerPC/vsx-tsvc-s173.ll b/llvm/test/Transforms/LoopVectorize/PowerPC/vsx-tsvc-s173.ll
index 759379a9e7bf3..c0656f00d51b6 100644
--- a/llvm/test/Transforms/LoopVectorize/PowerPC/vsx-tsvc-s173.ll
+++ b/llvm/test/Transforms/LoopVectorize/PowerPC/vsx-tsvc-s173.ll
@@ -8,7 +8,7 @@ target triple = "powerpc64-unknown-linux-gnu"
@global_data = external global %struct.GlobalData, align 16
@ntimes = external hidden unnamed_addr global i32, align 4
-define signext i32 @s173() #0 {
+define signext i32 @s173() {
; CHECK-LABEL: define signext i32 @s173(
; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -132,8 +132,6 @@ for.end12: ; preds = %for.end, %entry
}
-attributes #0 = { nounwind }
-
;.
; CHECK: [[LOOP0]] = distinct !{[[LOOP0]], [[META1:![0-9]+]], [[META2:![0-9]+]]}
; CHECK: [[META1]] = !{!"llvm.loop.isvectorized", i32 1}
diff --git a/llvm/test/Transforms/LoopVectorize/RISCV/riscv-interleaved.ll b/llvm/test/Transforms/LoopVectorize/RISCV/riscv-interleaved.ll
index c28d1706a31b2..9e17aa9be461c 100644
--- a/llvm/test/Transforms/LoopVectorize/RISCV/riscv-interleaved.ll
+++ b/llvm/test/Transforms/LoopVectorize/RISCV/riscv-interleaved.ll
@@ -8,8 +8,7 @@
; CHECK: %{{.*}} = add {{.*}}, 16
; CHECK: %{{.*}} = add <8 x i32> %{{.*}}, splat (i32 8)
-; Function Attrs: nofree norecurse nosync nounwind writeonly
-define void @foo(i32 signext %n, ptr nocapture %A) #0 {
+define void @foo(i32 signext %n, ptr nocapture %A) {
entry:
%cmp5 = icmp sgt i32 %n, 0
br i1 %cmp5, label %for.body.preheader, label %for.cond.cleanup
@@ -34,8 +33,6 @@ for.body: ; preds = %for.body.preheader,
br i1 %exitcond.not, label %for.cond.cleanup.loopexit, label %for.body, !llvm.loop !8
}
-attributes #0 = { nofree norecurse nosync nounwind writeonly "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+64bit,+a,+c,+m,+relax,-save-restore" }
-
!llvm.module.flags = !{!0, !1, !2}
!llvm.ident = !{!3}
diff --git a/llvm/test/Transforms/LoopVectorize/RISCV/riscv-unroll.ll b/llvm/test/Transforms/LoopVectorize/RISCV/riscv-unroll.ll
index 642eef59a966a..f66deea18355b 100644
--- a/llvm/test/Transforms/LoopVectorize/RISCV/riscv-unroll.ll
+++ b/llvm/test/Transforms/LoopVectorize/RISCV/riscv-unroll.ll
@@ -4,7 +4,6 @@
; RUN: opt < %s -passes=loop-vectorize -force-target-max-vector-interleave=1 -mtriple=riscv64 -mattr=+v -scalable-vectorization=off -riscv-v-register-bit-width-lmul=2 -S | FileCheck %s --check-prefix=LMUL2
; RUN: opt < %s -passes=loop-vectorize -force-target-max-vector-interleave=1 -mtriple=riscv32 -mattr=+v -scalable-vectorization=off -riscv-v-register-bit-width-lmul=2 -S | FileCheck %s --check-prefix=LMUL2
-; Function Attrs: nounwind
define ptr @array_add(ptr noalias nocapture readonly %a, ptr noalias nocapture readonly %b, ptr %c, i32 %size) {
; LMUL1-LABEL: @array_add(
; LMUL1-NEXT: entry:
diff --git a/llvm/test/Transforms/LoopVectorize/RISCV/short-trip-count.ll b/llvm/test/Transforms/LoopVectorize/RISCV/short-trip-count.ll
index 8c804e5e62f5c..74675437fae51 100644
--- a/llvm/test/Transforms/LoopVectorize/RISCV/short-trip-count.ll
+++ b/llvm/test/Transforms/LoopVectorize/RISCV/short-trip-count.ll
@@ -1,7 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -mtriple=riscv64 -mattr=+zve32x -passes=loop-vectorize < %s | FileCheck %s
-define void @small_trip_count_min_vlen_128(ptr nocapture %a) nounwind vscale_range(4,1024) {
+define void @small_trip_count_min_vlen_128(ptr nocapture %a) vscale_range(4,1024) {
; CHECK-LABEL: @small_trip_count_min_vlen_128(
; CHECK-NEXT: entry:
; CHECK-NEXT: br label [[LOOP1:%.*]]
@@ -34,7 +34,7 @@ exit:
ret void
}
-define void @small_trip_count_min_vlen_32(ptr nocapture %a) nounwind vscale_range(1,1024) {
+define void @small_trip_count_min_vlen_32(ptr nocapture %a) vscale_range(1,1024) {
; CHECK-LABEL: @small_trip_count_min_vlen_32(
; CHECK-NEXT: entry:
; CHECK-NEXT: br label [[LOOP1:%.*]]
diff --git a/llvm/test/Transforms/LoopVectorize/RISCV/unroll-in-loop-vectorizer.ll b/llvm/test/Transforms/LoopVectorize/RISCV/unroll-in-loop-vectorizer.ll
index 20d4322447abc..13354a4379d2f 100644
--- a/llvm/test/Transforms/LoopVectorize/RISCV/unroll-in-loop-vectorizer.ll
+++ b/llvm/test/Transforms/LoopVectorize/RISCV/unroll-in-loop-vectorizer.ll
@@ -3,7 +3,7 @@
; Make sure we don't unroll scalar loops in the loop vectorizer.
;
-define void @small_loop(ptr nocapture %inArray, i32 %size) nounwind {
+define void @small_loop(ptr nocapture %inArray, i32 %size) {
; CHECK-LABEL: @small_loop(
; CHECK-NEXT: entry:
; CHECK-NEXT: [[TMP0:%.*]] = icmp sgt i32 [[SIZE:%.*]], 0
diff --git a/llvm/test/Transforms/LoopVectorize/X86/CostModel/interleaved-load-half.ll b/llvm/test/Transforms/LoopVectorize/X86/CostModel/interleaved-load-half.ll
index 796b34fd7c25b..0f6c517e34704 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/CostModel/interleaved-load-half.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/CostModel/interleaved-load-half.ll
@@ -7,7 +7,6 @@ target triple = "i386-unknown-linux-gnu"
@src = common global [120 x half] zeroinitializer, align 4
@dst = common global [120 x half] zeroinitializer, align 4
-; Function Attrs: norecurse nounwind
define void @stride8(half %k, i32 %width_) {
; CHECK-LABEL: 'stride8'
; CHECK: Cost of 148 for VF 32: INTERLEAVE-GROUP with factor 8 at %0, ir<%arrayidx>
@@ -97,7 +96,6 @@ for.body: ; preds = %for.body.lr.ph, %fo
br i1 %cmp, label %for.body, label %for.cond.cleanup.loopexit
}
-; Function Attrs: norecurse nounwind
define void @stride3(half %k, i32 %width_) {
; CHECK-LABEL: 'stride3'
; CHECK: Cost of 18 for VF 32: INTERLEAVE-GROUP with factor 3 at %0, ir<%arrayidx>
diff --git a/llvm/test/Transforms/LoopVectorize/X86/already-vectorized.ll b/llvm/test/Transforms/LoopVectorize/X86/already-vectorized.ll
index 41fdcf2eb56d0..4d6dc86b1f716 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/already-vectorized.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/already-vectorized.ll
@@ -11,7 +11,6 @@ target triple = "x86_64-unknown-linux-gnu"
@a = external global [255 x i32]
-; Function Attrs: nounwind readonly uwtable
define i32 @vect() {
; CHECK: LV: Checking a loop in 'vect'
entry:
diff --git a/llvm/test/Transforms/LoopVectorize/X86/consecutive-ptr-cg-bug.ll b/llvm/test/Transforms/LoopVectorize/X86/consecutive-ptr-cg-bug.ll
index a33f8eb920039..4c0efc3677896 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/consecutive-ptr-cg-bug.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/consecutive-ptr-cg-bug.ll
@@ -34,7 +34,6 @@ target triple = "x86_64-unknown-linux-gnu"
; This test was originally vectorized, but now SCEV is smart enough to prove
; that its trip count is 1, so it gets ignored by vectorizer.
-; Function Attrs: uwtable
define void @test_01(ptr addrspace(1) %p, i1 %arg) {
br label %.outer
@@ -73,7 +72,6 @@ define void @test_01(ptr addrspace(1) %p, i1 %arg) {
; CHECK: vector.body:
; CHECK: store <4 x i32>
-; Function Attrs: uwtable
define void @test_02(ptr addrspace(1) %p, i1 %arg) {
br label %.outer
diff --git a/llvm/test/Transforms/LoopVectorize/X86/fp_to_sint8-cost-model.ll b/llvm/test/Transforms/LoopVectorize/X86/fp_to_sint8-cost-model.ll
index 4f7dee2b11365..38662644e2612 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/fp_to_sint8-cost-model.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/fp_to_sint8-cost-model.ll
@@ -6,7 +6,7 @@ target triple = "x86_64-apple-macosx10.8.0"
; CHECK: cost of 1 for VF 1 For instruction: %conv = fptosi float %tmp to i8
-define void @float_to_sint8_cost(ptr noalias nocapture %a, ptr noalias nocapture readonly %b) nounwind {
+define void @float_to_sint8_cost(ptr noalias nocapture %a, ptr noalias nocapture readonly %b) {
entry:
br label %for.body
for.body:
diff --git a/llvm/test/Transforms/LoopVectorize/X86/int128_no_gather.ll b/llvm/test/Transforms/LoopVectorize/X86/int128_no_gather.ll
index 5549bb4a30469..4318cbfdc558b 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/int128_no_gather.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/int128_no_gather.ll
@@ -12,7 +12,6 @@ target triple = "x86_64-unknown-linux-gnu"
@.str.1 = private unnamed_addr constant [44 x i8] c" FAIL.....Y3 1/1 (BUBBLE SORT), X(25) = %d\0A\00", align 1
@str = private unnamed_addr constant [45 x i8] c" PASS.....Y3 1/1 (BUBBLE SORT), X(25) = 5085\00"
-; Function Attrs: noinline
declare i32 @y3inner() #0
define i32 @main() #0 {
@@ -66,11 +65,7 @@ if.end: ; preds = %if.else, %if.then
ret i32 0
}
-; Function Attrs: nounwind
-declare i32 @printf(ptr, ...) #1
-; Function Attrs: nounwind
-declare i32 @puts(ptr nocapture readonly) #2
+declare i32 @printf(ptr, ...)
+declare i32 @puts(ptr nocapture readonly)
attributes #0 = { noinline "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="skylake-avx512" "target-features"="+adx,+aes,+avx,+avx2,+avx512bw,+avx512cd,+avx512dq,+avx512f,+avx512vl,+bmi,+bmi2,+clflushopt,+clwb,+cx16,+f16c,+fma,+fsgsbase,+fxsr,+lzcnt,+mmx,+movbe,+mpx,+pclmul,+pku,+popcnt,+rdrnd,+rdseed,+rtm,+sgx,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3,+x87,+xsave,+xsavec,+xsaveopt,+xsaves" "use-soft-float"="false" }
-attributes #1 = { nounwind "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="skylake-avx512" "target-features"="+adx,+aes,+avx,+avx2,+avx512bw,+avx512cd,+avx512dq,+avx512f,+avx512vl,+bmi,+bmi2,+clflushopt,+clwb,+cx16,+f16c,+fma,+fsgsbase,+fxsr,+lzcnt,+mmx,+movbe,+mpx,+pclmul,+pku,+popcnt,+rdrnd,+rdseed,+rtm,+sgx,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3,+x87,+xsave,+xsavec,+xsaveopt,+xsaves" "use-soft-float"="false" }
-attributes #2 = { nounwind }
diff --git a/llvm/test/Transforms/LoopVectorize/X86/interleaved-accesses-use-after-free.ll b/llvm/test/Transforms/LoopVectorize/X86/interleaved-accesses-use-after-free.ll
index 2c869604a589b..b93daef394c84 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/interleaved-accesses-use-after-free.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/interleaved-accesses-use-after-free.ll
@@ -86,10 +86,7 @@ bb4: ; preds = %bb4, %bb2
br i1 %icmp, label %bb2, label %bb4
}
-; Function Attrs: memory(readwrite, inaccessiblemem: none)
declare void @foo() #0
-
-; Function Attrs: memory(argmem: readwrite)
declare void @pluto() #1
attributes #0 = { memory(readwrite, inaccessiblemem: none) }
diff --git a/llvm/test/Transforms/LoopVectorize/X86/masked_load_store.ll b/llvm/test/Transforms/LoopVectorize/X86/masked_load_store.ll
index e2b713e868fa7..70336a97116e3 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/masked_load_store.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/masked_load_store.ll
@@ -17,7 +17,7 @@ target triple = "x86_64-pc_linux"
; }
;}
-define void @foo1(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture readonly %trigger) #0 {
+define void @foo1(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture readonly %trigger) {
; AVX1-LABEL: define void @foo1(
; AVX1-SAME: ptr captures(none) [[A:%.*]], ptr readonly captures(none) [[B:%.*]], ptr readonly captures(none) [[TRIGGER:%.*]]) #[[ATTR0:[0-9]+]] {
; AVX1-NEXT: [[ENTRY:.*:]]
@@ -238,7 +238,7 @@ for.end: ; preds = %for.inc
; The same as @foo1 but all the pointers are address space 1 pointers.
-define void @foo1_addrspace1(ptr addrspace(1) nocapture %A, ptr addrspace(1) nocapture readonly %B, ptr addrspace(1) nocapture readonly %trigger) #0 {
+define void @foo1_addrspace1(ptr addrspace(1) nocapture %A, ptr addrspace(1) nocapture readonly %B, ptr addrspace(1) nocapture readonly %trigger) {
; AVX1-LABEL: define void @foo1_addrspace1(
; AVX1-SAME: ptr addrspace(1) captures(none) [[A:%.*]], ptr addrspace(1) readonly captures(none) [[B:%.*]], ptr addrspace(1) readonly captures(none) [[TRIGGER:%.*]]) #[[ATTR0]] {
; AVX1-NEXT: [[ENTRY:.*:]]
@@ -468,7 +468,7 @@ for.end: ; preds = %for.inc
; }
;}
-define void @foo2(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture readonly %trigger) #0 {
+define void @foo2(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture readonly %trigger) {
; AVX1-LABEL: define void @foo2(
; AVX1-SAME: ptr captures(none) [[A:%.*]], ptr readonly captures(none) [[B:%.*]], ptr readonly captures(none) [[TRIGGER:%.*]]) #[[ATTR0]] {
; AVX1-NEXT: [[ENTRY:.*:]]
@@ -710,7 +710,7 @@ for.end: ; preds = %for.inc
; }
;}
-define void @foo3(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture readonly %trigger) #0 {
+define void @foo3(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture readonly %trigger) {
; AVX1-LABEL: define void @foo3(
; AVX1-SAME: ptr captures(none) [[A:%.*]], ptr readonly captures(none) [[B:%.*]], ptr readonly captures(none) [[TRIGGER:%.*]]) #[[ATTR0]] {
; AVX1-NEXT: [[ENTRY:.*:]]
@@ -962,7 +962,7 @@ for.end: ; preds = %for.inc
; }
;}
-define void @foo4(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture readonly %trigger) #0 {
+define void @foo4(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture readonly %trigger) {
; AVX-LABEL: define void @foo4(
; AVX-SAME: ptr captures(none) [[A:%.*]], ptr readonly captures(none) [[B:%.*]], ptr readonly captures(none) [[TRIGGER:%.*]]) #[[ATTR0:[0-9]+]] {
; AVX-NEXT: [[ENTRY:.*]]:
@@ -1070,7 +1070,7 @@ for.end: ; preds = %for.inc
; }
;}
-define void @foo6(ptr nocapture readonly %in, ptr nocapture %out, i32 %size, ptr nocapture readonly %trigger) #0 {
+define void @foo6(ptr nocapture readonly %in, ptr nocapture %out, i32 %size, ptr nocapture readonly %trigger) {
; AVX1-LABEL: define void @foo6(
; AVX1-SAME: ptr readonly captures(none) [[IN:%.*]], ptr captures(none) [[OUT:%.*]], i32 [[SIZE:%.*]], ptr readonly captures(none) [[TRIGGER:%.*]]) #[[ATTR0]] {
; AVX1-NEXT: [[ENTRY:.*]]:
@@ -1288,7 +1288,7 @@ for.end: ; preds = %for.inc
; out[i] = (double) 0.5;
; }
-define void @foo7(ptr noalias nocapture %out, ptr noalias nocapture readonly %in, ptr noalias nocapture readonly %trigger, i32 %size) #0 {
+define void @foo7(ptr noalias nocapture %out, ptr noalias nocapture readonly %in, ptr noalias nocapture readonly %trigger, i32 %size) {
; AVX1-LABEL: define void @foo7(
; AVX1-SAME: ptr noalias captures(none) [[OUT:%.*]], ptr noalias readonly captures(none) [[IN:%.*]], ptr noalias readonly captures(none) [[TRIGGER:%.*]], i32 [[SIZE:%.*]]) #[[ATTR0]] {
; AVX1-NEXT: [[ENTRY:.*:]]
@@ -1609,7 +1609,7 @@ for.end: ; preds = %for.inc, %entry
; out[i] = (double) 0.5;
;}
-define void @foo8(ptr noalias nocapture %out, ptr noalias nocapture readonly %in, ptr noalias nocapture readonly %trigger, i32 %size) #0 {
+define void @foo8(ptr noalias nocapture %out, ptr noalias nocapture readonly %in, ptr noalias nocapture readonly %trigger, i32 %size) {
; AVX1-LABEL: define void @foo8(
; AVX1-SAME: ptr noalias captures(none) [[OUT:%.*]], ptr noalias readonly captures(none) [[IN:%.*]], ptr noalias readonly captures(none) [[TRIGGER:%.*]], i32 [[SIZE:%.*]]) #[[ATTR0]] {
; AVX1-NEXT: [[ENTRY:.*:]]
@@ -1922,4 +1922,3 @@ for.end: ; preds = %for.inc, %entry
ret void
}
-attributes #0 = { norecurse nounwind }
diff --git a/llvm/test/Transforms/LoopVectorize/X86/no-vector.ll b/llvm/test/Transforms/LoopVectorize/X86/no-vector.ll
index 91dc2afb1c8a2..f944ffba26af2 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/no-vector.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/no-vector.ll
@@ -1,6 +1,6 @@
; RUN: opt -S -mtriple=i386-unknown-freebsd -mcpu=i486 -passes=loop-vectorize < %s
-define i32 @PR14639(ptr nocapture %s, i32 %len) nounwind {
+define i32 @PR14639(ptr nocapture %s, i32 %len) {
entry:
%cmp4 = icmp sgt i32 %len, 0
br i1 %cmp4, label %for.body, label %for.end
diff --git a/llvm/test/Transforms/LoopVectorize/X86/no_fpmath.ll b/llvm/test/Transforms/LoopVectorize/X86/no_fpmath.ll
index 5aedc585b0629..e8b132d068075 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/no_fpmath.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/no_fpmath.ll
@@ -7,8 +7,7 @@
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.10.0"
-; Function Attrs: nounwind readonly ssp uwtable
-define double @cond_sum(ptr nocapture readonly %v, i32 %n) #0 !dbg !4 {
+define double @cond_sum(ptr nocapture readonly %v, i32 %n) !dbg !4 {
entry:
%cmp.7 = icmp sgt i32 %n, 0, !dbg !3
br i1 %cmp.7, label %for.body.preheader, label %for.cond.cleanup, !dbg !8
@@ -38,7 +37,6 @@ for.body: ; preds = %for.body.preheader,
br i1 %exitcond, label %for.cond.cleanup.loopexit, label %for.body, !dbg !8
}
-; Function Attrs: nounwind readonly ssp uwtable
define double @cond_sum_loop_hint(ptr nocapture readonly %v, i32 %n) #0 !dbg !20 {
entry:
%cmp.7 = icmp sgt i32 %n, 0, !dbg !19
@@ -69,8 +67,6 @@ for.body: ; preds = %for.body.preheader,
br i1 %exitcond, label %for.cond.cleanup.loopexit, label %for.body, !dbg !21, !llvm.loop !26
}
-attributes #0 = { nounwind }
-
!llvm.dbg.cu = !{!28}
!llvm.module.flags = !{!0, !1}
!llvm.ident = !{!2}
diff --git a/llvm/test/Transforms/LoopVectorize/X86/no_fpmath_with_hotness.ll b/llvm/test/Transforms/LoopVectorize/X86/no_fpmath_with_hotness.ll
index 4f413a50837dd..f0f39a195e9cb 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/no_fpmath_with_hotness.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/no_fpmath_with_hotness.ll
@@ -7,8 +7,7 @@
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.10.0"
-; Function Attrs: nounwind readonly ssp uwtable
-define double @cond_sum(ptr nocapture readonly %v, i32 %n) #0 !dbg !4 !prof !29 {
+define double @cond_sum(ptr nocapture readonly %v, i32 %n) !dbg !4 !prof !29 {
entry:
%cmp.7 = icmp sgt i32 %n, 0, !dbg !3
br i1 %cmp.7, label %for.body.preheader, label %for.cond.cleanup, !dbg !8, !prof !30
@@ -38,8 +37,7 @@ for.body: ; preds = %for.body.preheader,
br i1 %exitcond, label %for.cond.cleanup.loopexit, label %for.body, !dbg !8, !llvm.loop !17, !prof !31
}
-; Function Attrs: nounwind readonly ssp uwtable
-define double @cond_sum_loop_hint(ptr nocapture readonly %v, i32 %n) #0 !dbg !20 !prof !29{
+define double @cond_sum_loop_hint(ptr nocapture readonly %v, i32 %n) !dbg !20 !prof !29{
entry:
%cmp.7 = icmp sgt i32 %n, 0, !dbg !19
br i1 %cmp.7, label %for.body.preheader, label %for.cond.cleanup, !dbg !21, !prof !30
@@ -69,8 +67,6 @@ for.body: ; preds = %for.body.preheader,
br i1 %exitcond, label %for.cond.cleanup.loopexit, label %for.body, !dbg !21, !llvm.loop !26, !prof !31
}
-attributes #0 = { nounwind }
-
!llvm.dbg.cu = !{!28}
!llvm.module.flags = !{!0, !1}
!llvm.ident = !{!2}
diff --git a/llvm/test/Transforms/LoopVectorize/X86/pr35432.ll b/llvm/test/Transforms/LoopVectorize/X86/pr35432.ll
index fd89ad5838f11..4aa0043e1bedd 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/pr35432.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/pr35432.ll
@@ -175,12 +175,10 @@ for.end12: ; preds = %for.cond.for.end12_
ret i32 0
}
-; Function Attrs: argmemonly nounwind
declare void @llvm.lifetime.start.p0(ptr nocapture) #1
declare i32 @goo(...) #2
declare i32 @foo(...) #2
-; Function Attrs: argmemonly nounwind
declare void @llvm.lifetime.end.p0(ptr nocapture) #1
diff --git a/llvm/test/Transforms/LoopVectorize/X86/pr48340.ll b/llvm/test/Transforms/LoopVectorize/X86/pr48340.ll
index 485e3c4f5b941..12be26a2ec5b2 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/pr48340.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/pr48340.ll
@@ -7,7 +7,7 @@ target triple = "x86_64-unknown-linux-gnu"
%0 = type { i32 }
%1 = type { i64 }
-define ptr @foo(ptr %p, ptr %p.last) unnamed_addr #0 {
+define ptr @foo(ptr %p, ptr %p.last) #0 {
; CHECK-LABEL: @foo(
; CHECK-NEXT: entry:
; CHECK-NEXT: [[P3:%.*]] = ptrtoint ptr [[P:%.*]] to i64
@@ -67,7 +67,7 @@ exit:
ret ptr %v
}
-define ptr @bar(ptr %p, ptr %p.last) unnamed_addr #0 {
+define ptr @bar(ptr %p, ptr %p.last) #0 {
; CHECK-LABEL: @bar(
; CHECK-NEXT: entry:
; CHECK-NEXT: [[P3:%.*]] = ptrtoint ptr [[P:%.*]] to i64
diff --git a/llvm/test/Transforms/LoopVectorize/X86/register-assumption.ll b/llvm/test/Transforms/LoopVectorize/X86/register-assumption.ll
index 0e78193b86974..473776999d547 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/register-assumption.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/register-assumption.ll
@@ -26,7 +26,4 @@ loop_body.dim.018: ; preds = %loop_body.dim.018,
br i1 %1, label %loop_header.dim.017.preheader, label %loop_body.dim.018
}
-; Function Attrs: nounwind
-declare void @llvm.assume(i1) #0
-
-attributes #0 = { nounwind }
+declare void @llvm.assume(i1)
diff --git a/llvm/test/Transforms/LoopVectorize/X86/scatter_crash.ll b/llvm/test/Transforms/LoopVectorize/X86/scatter_crash.ll
index e318efdac5b32..cc0cdcfdf8f25 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/scatter_crash.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/scatter_crash.ll
@@ -13,7 +13,6 @@ target triple = "x86_64-apple-macosx10.11.0"
@a = external global i32, align 4
@b = external global i64, align 8
-; Function Attrs: norecurse nounwind ssp uwtable
define void @_Z3fn1v() #0 {
; CHECK-LABEL: define void @_Z3fn1v(
; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
@@ -329,4 +328,4 @@ for.body: ; preds = %for.body.preheader,
br i1 %cmp, label %for.body, label %for.cond.cleanup.loopexit99
}
-attributes #0 = { norecurse nounwind ssp uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="broadwell" "target-features"="+adx,+aes,+avx,+avx2,+avx512cd,+avx512f,+bmi,+bmi2,+cx16,+f16c,+fma,+fsgsbase,+fxsr,+evex512,+lzcnt,+mmx,+movbe,+pclmul,+popcnt,+rdrnd,+rdseed,+rtm,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3,+x87,+xsave,+xsaveopt,-vzeroupper" "use-soft-float"="false" }
+attributes #0 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="broadwell" "target-features"="+adx,+aes,+avx,+avx2,+avx512cd,+avx512f,+bmi,+bmi2,+cx16,+f16c,+fma,+fsgsbase,+fxsr,+evex512,+lzcnt,+mmx,+movbe,+pclmul,+popcnt,+rdrnd,+rdseed,+rtm,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3,+x87,+xsave,+xsaveopt,-vzeroupper" "use-soft-float"="false" }
diff --git a/llvm/test/Transforms/LoopVectorize/X86/strided_load_cost.ll b/llvm/test/Transforms/LoopVectorize/X86/strided_load_cost.ll
index 91383d32d77bd..621bdba360618 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/strided_load_cost.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/strided_load_cost.ll
@@ -8,7 +8,6 @@ target triple = "x86_64-unknown-linux-gnu"
; This test checks that the given loop still beneficial for vecotization
; even if it contains scalarized load (gather on AVX2)
-; Function Attrs: norecurse nounwind readonly uwtable
define i32 @matrix_row_col(ptr nocapture readonly %data, i32 %i, i32 %j) #0 {
; CHECK-LABEL: define i32 @matrix_row_col(
; CHECK-SAME: ptr readonly captures(none) [[DATA:%.*]], i32 [[I:%.*]], i32 [[J:%.*]]) #[[ATTR0:[0-9]+]] {
diff --git a/llvm/test/Transforms/LoopVectorize/X86/tail_loop_folding.ll b/llvm/test/Transforms/LoopVectorize/X86/tail_loop_folding.ll
index ec92fb3e7e50d..ca437a1f40ba3 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/tail_loop_folding.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/tail_loop_folding.ll
@@ -171,7 +171,7 @@ for.cond.cleanup:
}
-attributes #0 = { nounwind optsize uwtable "target-cpu"="core-avx2" "target-features"="+avx,+avx2" }
+attributes #0 = { optsize "target-cpu"="core-avx2" "target-features"="+avx,+avx2" }
!6 = distinct !{!6, !7, !8}
!7 = !{!"llvm.loop.vectorize.predicate.enable", i1 true}
diff --git a/llvm/test/Transforms/LoopVectorize/X86/uint64_to_fp64-cost-model.ll b/llvm/test/Transforms/LoopVectorize/X86/uint64_to_fp64-cost-model.ll
index 8661d86f554b8..0edb89af5bc54 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/uint64_to_fp64-cost-model.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/uint64_to_fp64-cost-model.ll
@@ -8,7 +8,7 @@ target triple = "x86_64-apple-macosx10.8.0"
; CHECK: cost of 4 for VF 1 For instruction: %conv = uitofp i64 %tmp to double
; CHECK: Cost of 5 for VF 2: WIDEN-CAST ir<%conv> = uitofp ir<%tmp> to double
; CHECK: Cost of 10 for VF 4: WIDEN-CAST ir<%conv> = uitofp ir<%tmp> to double
-define void @uint64_to_double_cost(ptr noalias nocapture %a, ptr noalias nocapture readonly %b) nounwind {
+define void @uint64_to_double_cost(ptr noalias nocapture %a, ptr noalias nocapture readonly %b) {
entry:
br label %for.body
for.body:
diff --git a/llvm/test/Transforms/LoopVectorize/X86/vector_ptr_load_store.ll b/llvm/test/Transforms/LoopVectorize/X86/vector_ptr_load_store.ll
index 5d110e7b40bff..12a44a7ab9759 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/vector_ptr_load_store.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/vector_ptr_load_store.ll
@@ -19,7 +19,7 @@ target triple = "x86_64-apple-macosx10.8.0"
; CHECK: test_consecutive_store
; CHECK: LV: The Smallest and Widest types: 64 / 64 bits.
; CHECK: LV: Selecting VF: 4
-define void @test_consecutive_store(ptr, ptr, ptr nocapture) nounwind ssp uwtable align 2 {
+define void @test_consecutive_store(ptr, ptr, ptr nocapture) {
%4 = load ptr, ptr %2, align 8
%5 = icmp eq ptr %0, %1
br i1 %5, label %12, label %6
@@ -54,7 +54,7 @@ define void @test_consecutive_store(ptr, ptr, ptr nocapture) nounwind ssp uwtabl
; CHECK: test_nonconsecutive_store
; CHECK: LV: The Smallest and Widest types: 16 / 64 bits.
; CHECK: LV: Selecting VF: 1
-define void @test_nonconsecutive_store() nounwind ssp uwtable {
+define void @test_nonconsecutive_store() {
br label %1
; <label>:1 ; preds = %14, %0
@@ -97,7 +97,7 @@ define void @test_nonconsecutive_store() nounwind ssp uwtable {
; CHECK: test_consecutive_ptr_load
; CHECK: LV: The Smallest and Widest types: 8 / 64 bits.
; CHECK: LV: Selecting VF: 4
-define i8 @test_consecutive_ptr_load() nounwind readonly ssp uwtable {
+define i8 @test_consecutive_ptr_load() readonly {
br label %1
; <label>:1 ; preds = %1, %0
@@ -122,7 +122,7 @@ define i8 @test_consecutive_ptr_load() nounwind readonly ssp uwtable {
; CHECK: test_nonconsecutive_ptr_load
; CHECK: LV: The Smallest and Widest types: 16 / 64 bits.
; CHECK: LV: Selecting VF: 4
-define void @test_nonconsecutive_ptr_load() nounwind ssp uwtable {
+define void @test_nonconsecutive_ptr_load() {
br label %1
; <label>:1 ; preds = %13, %0
diff --git a/llvm/test/Transforms/LoopVectorize/X86/vectorization-remarks-missed.ll b/llvm/test/Transforms/LoopVectorize/X86/vectorization-remarks-missed.ll
index 11cdabe12d43b..14c5cde2cd984 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/vectorization-remarks-missed.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/vectorization-remarks-missed.ll
@@ -171,8 +171,7 @@
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
-; Function Attrs: nounwind optsize ssp uwtable
-define void @_Z4testPii(ptr nocapture %A, i32 %Length) #0 !dbg !4 {
+define void @_Z4testPii(ptr nocapture %A, i32 %Length) !dbg !4 {
entry:
%cmp10 = icmp sgt i32 %Length, 0, !dbg !12
br i1 %cmp10, label %loop, label %exit, !dbg !12, !llvm.loop !14
@@ -198,8 +197,7 @@ exit: ; preds = %loop, %entry
; CHECK-NOT: x i32>
; CHECK: ret
-; Function Attrs: nounwind optsize ssp uwtable
-define void @_Z13test_disabledPii(ptr nocapture %A, i32 %Length) #0 !dbg !7 {
+define void @_Z13test_disabledPii(ptr nocapture %A, i32 %Length) !dbg !7 {
entry:
%cmp4 = icmp sgt i32 %Length, 0, !dbg !25
br i1 %cmp4, label %loop, label %exit, !dbg !25, !llvm.loop !27
@@ -222,8 +220,7 @@ exit: ; preds = %loop, %entry
; CHECK-NOT: x i32>
; CHECK: ret
-; Function Attrs: nounwind optsize ssp uwtable
-define void @_Z17test_array_boundsPiS_i(ptr nocapture %A, ptr nocapture readonly %B, i32 %Length) #0 !dbg !8 {
+define void @_Z17test_array_boundsPiS_i(ptr nocapture %A, ptr nocapture readonly %B, i32 %Length) !dbg !8 {
entry:
%cmp9 = icmp sgt i32 %Length, 0, !dbg !32
br i1 %cmp9, label %loop.preheader, label %exit, !dbg !32, !llvm.loop !34
@@ -253,7 +250,7 @@ exit:
; CHECK-NOT: x i32>
; CHECK: ret
-define i32 @test_multiple_failures(ptr nocapture readonly %A) #0 !dbg !46 {
+define i32 @test_multiple_failures(ptr nocapture readonly %A) !dbg !46 {
entry:
br label %loop, !dbg !38
@@ -307,8 +304,6 @@ declare i32 @foo(...)
; CHECK-NOT: x i32>
; CHECK: ret
-attributes #0 = { nounwind }
-
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!9, !10}
!llvm.ident = !{!11}
diff --git a/llvm/test/Transforms/LoopVectorize/assume.ll b/llvm/test/Transforms/LoopVectorize/assume.ll
index 6139c722859d7..f43d94687de06 100644
--- a/llvm/test/Transforms/LoopVectorize/assume.ll
+++ b/llvm/test/Transforms/LoopVectorize/assume.ll
@@ -58,9 +58,7 @@ for.end: ; preds = %for.body
ret void
}
-declare void @llvm.assume(i1) #0
-
-attributes #0 = { nounwind willreturn }
+declare void @llvm.assume(i1)
define void @test2(ptr noalias %a, ptr noalias %b) {
; CHECK-LABEL: define void @test2(
diff --git a/llvm/test/Transforms/LoopVectorize/conditional-assignment.ll b/llvm/test/Transforms/LoopVectorize/conditional-assignment.ll
index 9a2aa299e5d16..dafeb9a27da5f 100644
--- a/llvm/test/Transforms/LoopVectorize/conditional-assignment.ll
+++ b/llvm/test/Transforms/LoopVectorize/conditional-assignment.ll
@@ -4,8 +4,7 @@
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
-; Function Attrs: nounwind ssp uwtable
-define void @conditional_store(ptr noalias nocapture %indices) #0 !dbg !4 {
+define void @conditional_store(ptr noalias nocapture %indices) !dbg !4 {
entry:
br label %for.body, !dbg !10
@@ -29,8 +28,6 @@ for.end: ; preds = %for.inc
ret void, !dbg !19
}
-attributes #0 = { nounwind }
-
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!7, !8}
!llvm.ident = !{!9}
diff --git a/llvm/test/Transforms/LoopVectorize/control-flow.ll b/llvm/test/Transforms/LoopVectorize/control-flow.ll
index 2ff2add30b436..69fea316e7f4c 100644
--- a/llvm/test/Transforms/LoopVectorize/control-flow.ll
+++ b/llvm/test/Transforms/LoopVectorize/control-flow.ll
@@ -19,8 +19,7 @@
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
-; Function Attrs: nounwind optsize ssp uwtable
-define i32 @_Z4testPii(ptr nocapture %A, i32 %Length) #0 !dbg !4 {
+define i32 @_Z4testPii(ptr nocapture %A, i32 %Length) !dbg !4 {
entry:
%cmp8 = icmp sgt i32 %Length, 0, !dbg !10
br i1 %cmp8, label %for.body.preheader, label %end, !dbg !10
@@ -49,8 +48,6 @@ end: ; preds = %end.loopexit, %entr
ret i32 0, !dbg !20
}
-attributes #0 = { nounwind }
-
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!7, !8}
!llvm.ident = !{!9}
diff --git a/llvm/test/Transforms/LoopVectorize/dbg.value.ll b/llvm/test/Transforms/LoopVectorize/dbg.value.ll
index 19ef3ccf769a1..d7ddd3078cc3b 100644
--- a/llvm/test/Transforms/LoopVectorize/dbg.value.ll
+++ b/llvm/test/Transforms/LoopVectorize/dbg.value.ll
@@ -9,7 +9,6 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
@C = global [1024 x i32] zeroinitializer, align 16, !dbg !9
; CHECK-LABEL: @test(
-; Function Attrs: nounwind ssp uwtable
define i32 @test() #0 !dbg !15 {
entry:
tail call void @llvm.dbg.value(metadata i32 0, metadata !19, metadata !21), !dbg !22
@@ -35,15 +34,11 @@ for.end: ; preds = %for.body
ret i32 0, !dbg !25
}
-; Function Attrs: nounwind readnone
-
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
-
-; Function Attrs: nounwind readnone
declare void @llvm.dbg.value(metadata, metadata, metadata) #1
-attributes #0 = { nounwind ssp uwtable "fp-contract-model"="standard" "frame-pointer"="non-leaf" "relocation-model"="pic" "ssp-buffers-size"="8" }
-attributes #1 = { nounwind readnone }
+attributes #0 = { "fp-contract-model"="standard" "frame-pointer"="non-leaf" "relocation-model"="pic" "ssp-buffers-size"="8" }
+attributes #1 = { readnone }
!llvm.dbg.cu = !{!11}
!llvm.module.flags = !{!14}
diff --git a/llvm/test/Transforms/LoopVectorize/dereferenceable-info-from-assumption-variable-size.ll b/llvm/test/Transforms/LoopVectorize/dereferenceable-info-from-assumption-variable-size.ll
index 799e540469e6d..88403a3e6a750 100644
--- a/llvm/test/Transforms/LoopVectorize/dereferenceable-info-from-assumption-variable-size.ll
+++ b/llvm/test/Transforms/LoopVectorize/dereferenceable-info-from-assumption-variable-size.ll
@@ -761,7 +761,6 @@ exit:
}
; Test to check type mismatch while calling getUMaxExpr()
-; Function Attrs: mustprogress norecurse nosync nounwind ssp memory(read, inaccessiblemem: write, target_mem0: none, target_mem1: none) uwtable(sync)
define void @test_assumed_bounds_type_mismatch(ptr noalias %array, ptr readonly %pred, i32 %n) nosync nofree {
; CHECK-LABEL: define void @test_assumed_bounds_type_mismatch(
; CHECK-SAME: ptr noalias [[ARRAY:%.*]], ptr readonly [[PRED:%.*]], i32 [[N:%.*]]) #[[ATTR1]] {
diff --git a/llvm/test/Transforms/LoopVectorize/diag-missing-instr-debug-loc.ll b/llvm/test/Transforms/LoopVectorize/diag-missing-instr-debug-loc.ll
index e45fe4880321b..a2b9b3e01d9a7 100644
--- a/llvm/test/Transforms/LoopVectorize/diag-missing-instr-debug-loc.ll
+++ b/llvm/test/Transforms/LoopVectorize/diag-missing-instr-debug-loc.ll
@@ -23,7 +23,6 @@ target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
@out = external global [0 x i32], align 4
@map = external global [0 x i32], align 4
-; Function Attrs: norecurse nounwind ssp uwtable
define void @f(i32 %a, i32 %n) #0 !dbg !6 {
entry:
%cmp7 = icmp sgt i32 %n, 0, !dbg !8
@@ -50,7 +49,7 @@ for.body: ; preds = %for.body.preheader,
br i1 %exitcond, label %for.cond.cleanup, label %for.body, !dbg !9, !llvm.loop !18
}
-attributes #0 = { norecurse nounwind ssp uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="core2" "target-features"="+cx16,+fxsr,+mmx,+sse,+sse2,+sse3,+ssse3,+x87" "use-soft-float"="false" }
+attributes #0 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="core2" "target-features"="+cx16,+fxsr,+mmx,+sse,+sse2,+sse3,+ssse3,+x87" "use-soft-float"="false" }
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4}
diff --git a/llvm/test/Transforms/LoopVectorize/diag-with-hotness-info-2.ll b/llvm/test/Transforms/LoopVectorize/diag-with-hotness-info-2.ll
index 703c13739e79c..d0221b2a97134 100644
--- a/llvm/test/Transforms/LoopVectorize/diag-with-hotness-info-2.ll
+++ b/llvm/test/Transforms/LoopVectorize/diag-with-hotness-info-2.ll
@@ -32,7 +32,6 @@
source_filename = "/tmp/s.c"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
-; Function Attrs: norecurse nounwind ssp uwtable
define void @cold(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture %C, ptr nocapture readonly %D, ptr nocapture readonly %E, i32 %N) #0 !dbg !7 !prof !56 {
entry:
%cmp28 = icmp sgt i32 %N, 0, !dbg !9
@@ -66,7 +65,6 @@ for.cond.cleanup:
ret void, !dbg !11
}
-; Function Attrs: norecurse nounwind ssp uwtable
define void @hot(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture %C, ptr nocapture readonly %D, ptr nocapture readonly %E, i32 %N) #0 !dbg !26 !prof !57 {
entry:
%cmp28 = icmp sgt i32 %N, 0, !dbg !27
@@ -100,7 +98,6 @@ for.cond.cleanup:
ret void, !dbg !29
}
-; Function Attrs: norecurse nounwind ssp uwtable
define void @unknown(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture %C, ptr nocapture readonly %D, ptr nocapture readonly %E, i32 %N) #0 !dbg !41 {
entry:
%cmp28 = icmp sgt i32 %N, 0, !dbg !42
@@ -134,7 +131,7 @@ for.cond.cleanup:
ret void, !dbg !44
}
-attributes #0 = { norecurse nounwind ssp uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="core2" "target-features"="+cx16,+fxsr,+mmx,+sse,+sse2,+sse3,+ssse3,+x87" "use-soft-float"="false" }
+attributes #0 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="core2" "target-features"="+cx16,+fxsr,+mmx,+sse,+sse2,+sse3,+ssse3,+x87" "use-soft-float"="false" }
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4, !5}
diff --git a/llvm/test/Transforms/LoopVectorize/diag-with-hotness-info.ll b/llvm/test/Transforms/LoopVectorize/diag-with-hotness-info.ll
index f26c7aaf69379..334355330a20f 100644
--- a/llvm/test/Transforms/LoopVectorize/diag-with-hotness-info.ll
+++ b/llvm/test/Transforms/LoopVectorize/diag-with-hotness-info.ll
@@ -46,7 +46,6 @@
source_filename = "/tmp/s.c"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
-; Function Attrs: norecurse nounwind ssp uwtable
define void @cold(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture %C, ptr nocapture readonly %D, ptr nocapture readonly %E, i32 %N) #0 !dbg !7 !prof !56 {
entry:
%cmp28 = icmp sgt i32 %N, 0, !dbg !9
@@ -80,7 +79,6 @@ for.cond.cleanup:
ret void, !dbg !11
}
-; Function Attrs: norecurse nounwind ssp uwtable
define void @hot(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture %C, ptr nocapture readonly %D, ptr nocapture readonly %E, i32 %N) #0 !dbg !26 !prof !57 {
entry:
%cmp28 = icmp sgt i32 %N, 0, !dbg !27
@@ -114,7 +112,6 @@ for.cond.cleanup:
ret void, !dbg !29
}
-; Function Attrs: norecurse nounwind ssp uwtable
define void @unknown(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture %C, ptr nocapture readonly %D, ptr nocapture readonly %E, i32 %N) #0 !dbg !41 {
entry:
%cmp28 = icmp sgt i32 %N, 0, !dbg !42
@@ -145,7 +142,7 @@ for.body: ; preds = %entry, %for.body
br i1 %exitcond, label %for.cond.cleanup, label %for.body, !dbg !43, !llvm.loop !55
}
-attributes #0 = { norecurse nounwind ssp uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="core2" "target-features"="+cx16,+fxsr,+mmx,+sse,+sse2,+sse3,+ssse3,+x87" "use-soft-float"="false" }
+attributes #0 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="core2" "target-features"="+cx16,+fxsr,+mmx,+sse,+sse2,+sse3,+ssse3,+x87" "use-soft-float"="false" }
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4, !5}
diff --git a/llvm/test/Transforms/LoopVectorize/ee-crash.ll b/llvm/test/Transforms/LoopVectorize/ee-crash.ll
index 54c07ed6ff518..917ecf3e77dd1 100644
--- a/llvm/test/Transforms/LoopVectorize/ee-crash.ll
+++ b/llvm/test/Transforms/LoopVectorize/ee-crash.ll
@@ -7,7 +7,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
; CHECK-LABEL: @_Z4foo1Pii(
; CHECK-NOT: <4 x i32>
; CHECK: ret
-define i32 @_Z4foo1Pii(ptr %A, i32 %n, <2 x i32> %q) #0 {
+define i32 @_Z4foo1Pii(ptr %A, i32 %n, <2 x i32> %q) {
entry:
%idx.ext = sext i32 %n to i64
%add.ptr = getelementptr inbounds i32, ptr %A, i64 %idx.ext
@@ -30,5 +30,3 @@ _ZSt10accumulateIPiiET0_T_S2_S1_.exit: ; preds = %for.body.i, %entry
ret i32 %__init.addr.0.lcssa.i
}
-attributes #0 = { nounwind readonly ssp uwtable }
-
diff --git a/llvm/test/Transforms/LoopVectorize/global_alias.ll b/llvm/test/Transforms/LoopVectorize/global_alias.ll
index e0f12fb3b0279..e5cf705f0ff11 100644
--- a/llvm/test/Transforms/LoopVectorize/global_alias.ll
+++ b/llvm/test/Transforms/LoopVectorize/global_alias.ll
@@ -26,7 +26,7 @@ target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
; CHECK: add nsw <4 x i32>
; CHECK: ret
-define i32 @noAlias01(i32 %a) nounwind {
+define i32 @noAlias01(i32 %a) {
entry:
br label %for.body
@@ -506,7 +506,7 @@ for.end: ; preds = %for.body
; CHECK: add nsw <4 x i32>
; CHECK: ret
-define i32 @mayAlias01(i32 %a) nounwind {
+define i32 @mayAlias01(i32 %a) {
entry:
br label %for.body
@@ -539,7 +539,7 @@ for.end: ; preds = %for.body
; CHECK: add nsw <4 x i32>
; CHECK: ret
-define i32 @mayAlias02(i32 %a) nounwind {
+define i32 @mayAlias02(i32 %a) {
entry:
br label %for.body
@@ -572,7 +572,7 @@ for.end: ; preds = %for.body
; CHECK-NOT: add nsw <4 x i32>
; CHECK: ret
-define i32 @mayAlias03(i32 %a) nounwind {
+define i32 @mayAlias03(i32 %a) {
entry:
br label %for.body
@@ -612,7 +612,7 @@ for.end: ; preds = %for.body
; CHECK-NOT: add nsw <4 x i32>
; CHECK: ret
-define i32 @mustAlias01(i32 %a) nounwind {
+define i32 @mustAlias01(i32 %a) {
entry:
br label %for.body
@@ -645,7 +645,7 @@ for.end: ; preds = %for.body
; CHECK-NOT: add nsw <4 x i32>
; CHECK: ret
-define i32 @mustAlias02(i32 %a) nounwind {
+define i32 @mustAlias02(i32 %a) {
entry:
br label %for.body
@@ -677,7 +677,7 @@ for.end: ; preds = %for.body
; CHECK-NOT: add nsw <4 x i32>
; CHECK: ret
-define i32 @mustAlias03(i32 %a) nounwind {
+define i32 @mustAlias03(i32 %a) {
entry:
br label %for.body
diff --git a/llvm/test/Transforms/LoopVectorize/if-reduction.ll b/llvm/test/Transforms/LoopVectorize/if-reduction.ll
index 320c69cb0c8f8..31a124ba457d4 100644
--- a/llvm/test/Transforms/LoopVectorize/if-reduction.ll
+++ b/llvm/test/Transforms/LoopVectorize/if-reduction.ll
@@ -15,9 +15,9 @@ target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
; return sum;
; }
-define float @fcmp_0_fadd_select1(ptr noalias %x, i32 %N) nounwind readonly {
+define float @fcmp_0_fadd_select1(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define float @fcmp_0_fadd_select1(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0:[0-9]+]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -103,9 +103,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define double @fcmp_0_fadd_select2(ptr noalias %x, i32 %N) nounwind readonly {
+define double @fcmp_0_fadd_select2(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define double @fcmp_0_fadd_select2(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -192,9 +192,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define float @fcmp_val_fadd_select1(ptr noalias %x, float %y, i32 %N) nounwind readonly {
+define float @fcmp_val_fadd_select1(ptr noalias %x, float %y, i32 %N) {
; CHECK-LABEL: define float @fcmp_val_fadd_select1(
-; CHECK-SAME: ptr noalias [[X:%.*]], float [[Y:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], float [[Y:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -283,9 +283,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define double @fcmp_val_fadd_select2(ptr noalias %x, double %y, i32 %N) nounwind readonly {
+define double @fcmp_val_fadd_select2(ptr noalias %x, double %y, i32 %N) {
; CHECK-LABEL: define double @fcmp_val_fadd_select2(
-; CHECK-SAME: ptr noalias [[X:%.*]], double [[Y:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], double [[Y:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -375,9 +375,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define float @fcmp_array_elm_fadd_select1(ptr noalias %x, ptr noalias %y, i32 %N) nounwind readonly {
+define float @fcmp_array_elm_fadd_select1(ptr noalias %x, ptr noalias %y, i32 %N) {
; CHECK-LABEL: define float @fcmp_array_elm_fadd_select1(
-; CHECK-SAME: ptr noalias [[X:%.*]], ptr noalias [[Y:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], ptr noalias [[Y:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -471,9 +471,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define double @fcmp_array_elm_fadd_select2(ptr noalias %x, ptr noalias %y, i32 %N) nounwind readonly {
+define double @fcmp_array_elm_fadd_select2(ptr noalias %x, ptr noalias %y, i32 %N) {
; CHECK-LABEL: define double @fcmp_array_elm_fadd_select2(
-; CHECK-SAME: ptr noalias [[X:%.*]], ptr noalias [[Y:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], ptr noalias [[Y:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -565,9 +565,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define float @fcmp_0_fsub_select1(ptr noalias %x, i32 %N) nounwind readonly {
+define float @fcmp_0_fsub_select1(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define float @fcmp_0_fsub_select1(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -651,9 +651,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define float @fcmp_0_fsub_select1_novectorize(ptr noalias %x, i32 %N) nounwind readonly {
+define float @fcmp_0_fsub_select1_novectorize(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define float @fcmp_0_fsub_select1_novectorize(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -715,9 +715,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define double @fcmp_0_fsub_select2(ptr noalias %x, i32 %N) nounwind readonly {
+define double @fcmp_0_fsub_select2(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define double @fcmp_0_fsub_select2(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -802,9 +802,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define double @fcmp_0_fsub_select2_notvectorize(ptr noalias %x, i32 %N) nounwind readonly {
+define double @fcmp_0_fsub_select2_notvectorize(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define double @fcmp_0_fsub_select2_notvectorize(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -866,9 +866,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define float @fcmp_0_fmult_select1(ptr noalias %x, i32 %N) nounwind readonly {
+define float @fcmp_0_fmult_select1(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define float @fcmp_0_fmult_select1(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -953,9 +953,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define float @fcmp_0_fmult_select1_notvectorize(ptr noalias %x, i32 %N) nounwind readonly {
+define float @fcmp_0_fmult_select1_notvectorize(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define float @fcmp_0_fmult_select1_notvectorize(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -1017,9 +1017,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define double @fcmp_0_fmult_select2(ptr noalias %x, i32 %N) nounwind readonly {
+define double @fcmp_0_fmult_select2(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define double @fcmp_0_fmult_select2(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -1104,9 +1104,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define double @fcmp_0_fmult_select2_notvectorize(ptr noalias %x, i32 %N) nounwind readonly {
+define double @fcmp_0_fmult_select2_notvectorize(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define double @fcmp_0_fmult_select2_notvectorize(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -1173,9 +1173,9 @@ for.end: ; preds = %for.body, %entry
; return sum;
; }
-define float @fcmp_multi(ptr nocapture readonly %a, i32 %n) nounwind readonly {
+define float @fcmp_multi(ptr nocapture %a, i32 %n) {
; CHECK-LABEL: define float @fcmp_multi(
-; CHECK-SAME: ptr readonly captures(none) [[A:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr captures(none) [[A:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP10:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP10]], label %[[FOR_BODY_PREHEADER:.*]], label %[[FOR_END:.*]]
@@ -1295,9 +1295,9 @@ for.end: ; preds = %for.inc, %entry
; return sum;
; }
-define float @fcmp_fadd_fsub(ptr nocapture readonly %a, i32 %n) nounwind readonly {
+define float @fcmp_fadd_fsub(ptr nocapture %a, i32 %n) {
; CHECK-LABEL: define float @fcmp_fadd_fsub(
-; CHECK-SAME: ptr readonly captures(none) [[A:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr captures(none) [[A:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP9:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP9]], label %[[FOR_BODY_PREHEADER:.*]], label %[[FOR_END:.*]]
@@ -1414,9 +1414,9 @@ for.end: ; preds = %for.inc, %entry
; return sum;
; }
-define float @fcmp_fadd_fmul(ptr nocapture readonly %a, i32 %n) nounwind readonly {
+define float @fcmp_fadd_fmul(ptr nocapture %a, i32 %n) {
; CHECK-LABEL: define float @fcmp_fadd_fmul(
-; CHECK-SAME: ptr readonly captures(none) [[A:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr captures(none) [[A:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP9:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP9]], label %[[FOR_BODY_PREHEADER:.*]], label %[[FOR_END:.*]]
@@ -1503,9 +1503,9 @@ for.end: ; preds = %for.inc, %entry
; return sum;
; }
-define float @fcmp_store_back(ptr nocapture %a, i32 %LEN) nounwind readonly {
+define float @fcmp_store_back(ptr nocapture %a, i32 %LEN) {
; CHECK-LABEL: define float @fcmp_store_back(
-; CHECK-SAME: ptr captures(none) [[A:%.*]], i32 [[LEN:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr captures(none) [[A:%.*]], i32 [[LEN:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP7:%.*]] = icmp sgt i32 [[LEN]], 0
; CHECK-NEXT: br i1 [[CMP7]], label %[[FOR_BODY_PREHEADER:.*]], label %[[FOR_END:.*]]
@@ -1553,9 +1553,9 @@ for.end: ; preds = %for.body, %entry
ret float %sum.0.lcssa
}
-define i64 @fcmp_0_add_select2(ptr noalias %x, i64 %N) nounwind readonly {
+define i64 @fcmp_0_add_select2(ptr noalias %x, i64 %N) {
; CHECK-LABEL: define i64 @fcmp_0_add_select2(
-; CHECK-SAME: ptr noalias [[X:%.*]], i64 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i64 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i64 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -1628,9 +1628,9 @@ for.end: ; preds = %for.body, %entry
}
; FIXME: %indvars.iv.next is poison on first iteration due to sub nuw 0, 1.
-define i32 @fcmp_0_sub_select1(ptr noalias %x, i32 %N) nounwind readonly {
+define i32 @fcmp_0_sub_select1(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define i32 @fcmp_0_sub_select1(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
@@ -1706,9 +1706,9 @@ for.end: ; preds = %for.body, %entry
ret i32 %1
}
-define i32 @fcmp_0_mult_select1(ptr noalias %x, i32 %N) nounwind readonly {
+define i32 @fcmp_0_mult_select1(ptr noalias %x, i32 %N) {
; CHECK-LABEL: define i32 @fcmp_0_mult_select1(
-; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) #[[ATTR0]] {
+; CHECK-SAME: ptr noalias [[X:%.*]], i32 [[N:%.*]]) {
; CHECK-NEXT: [[ENTRY:.*]]:
; CHECK-NEXT: [[CMP_1:%.*]] = icmp sgt i32 [[N]], 0
; CHECK-NEXT: br i1 [[CMP_1]], label %[[FOR_HEADER:.*]], label %[[FOR_END:.*]]
diff --git a/llvm/test/Transforms/LoopVectorize/incorrect-dom-info.ll b/llvm/test/Transforms/LoopVectorize/incorrect-dom-info.ll
index df8ade647d968..03ec454b0b55a 100644
--- a/llvm/test/Transforms/LoopVectorize/incorrect-dom-info.ll
+++ b/llvm/test/Transforms/LoopVectorize/incorrect-dom-info.ll
@@ -5,7 +5,6 @@ target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
@PL_utf8skip = external constant [0 x i8]
-; Function Attrs: nounwind ssp uwtable
define void @Perl_pp_quotemeta(i1 %arg) #0 {
%len = alloca i64, align 8
br i1 %arg, label %2, label %1
@@ -135,7 +134,7 @@ thread-pre-split5: ; preds = %.lr.ph
ret void
}
-attributes #0 = { nounwind ssp uwtable "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="false" }
+attributes #0 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="false" }
!llvm.ident = !{!0}
diff --git a/llvm/test/Transforms/LoopVectorize/induction.ll b/llvm/test/Transforms/LoopVectorize/induction.ll
index e7f57a1c9b145..fae07c45636fb 100644
--- a/llvm/test/Transforms/LoopVectorize/induction.ll
+++ b/llvm/test/Transforms/LoopVectorize/induction.ll
@@ -2728,7 +2728,7 @@ for.end:
; to 0.
; PR17532
-define i32 @i8_loop() nounwind readnone ssp uwtable {
+define i32 @i8_loop() {
; CHECK-LABEL: @i8_loop(
; CHECK-NEXT: entry:
; CHECK-NEXT: br label [[VECTOR_PH:%.*]]
@@ -2829,7 +2829,7 @@ exit:
}
-define i32 @i16_loop() nounwind readnone ssp uwtable {
+define i32 @i16_loop() {
; CHECK-LABEL: @i16_loop(
; CHECK-NEXT: entry:
; CHECK-NEXT: br label [[VECTOR_PH:%.*]]
diff --git a/llvm/test/Transforms/LoopVectorize/int_sideeffect.ll b/llvm/test/Transforms/LoopVectorize/int_sideeffect.ll
index 7edf0d26ee82c..ae596e59c1e74 100644
--- a/llvm/test/Transforms/LoopVectorize/int_sideeffect.ll
+++ b/llvm/test/Transforms/LoopVectorize/int_sideeffect.ll
@@ -6,7 +6,7 @@ declare void @llvm.sideeffect()
; CHECK-LABEL: store_ones
; CHECK: store <4 x float>
-define void @store_ones(ptr %p, i64 %n) nounwind {
+define void @store_ones(ptr %p, i64 %n) {
bb7.lr.ph:
br label %bb7
diff --git a/llvm/test/Transforms/LoopVectorize/no_array_bounds.ll b/llvm/test/Transforms/LoopVectorize/no_array_bounds.ll
index a280c7121d2b0..6baec841a814f 100644
--- a/llvm/test/Transforms/LoopVectorize/no_array_bounds.ll
+++ b/llvm/test/Transforms/LoopVectorize/no_array_bounds.ll
@@ -16,8 +16,7 @@
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
-; Function Attrs: nounwind ssp uwtable
-define void @_Z4testPiS_i(ptr nocapture %A, ptr nocapture %B, i32 %number) #0 !dbg !4 {
+define void @_Z4testPiS_i(ptr nocapture %A, ptr nocapture %B, i32 %number) !dbg !4 {
entry:
%cmp25 = icmp sgt i32 %number, 0, !dbg !10
br i1 %cmp25, label %for.body.preheader, label %for.end15, !dbg !10, !llvm.loop !12
@@ -66,8 +65,6 @@ for.end15: ; preds = %for.end15.loopexit,
ret void, !dbg !26
}
-attributes #0 = { nounwind }
-
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!7, !8}
!llvm.ident = !{!9}
diff --git a/llvm/test/Transforms/LoopVectorize/no_switch.ll b/llvm/test/Transforms/LoopVectorize/no_switch.ll
index 118a15e63fe99..f74c50e57b1b7 100644
--- a/llvm/test/Transforms/LoopVectorize/no_switch.ll
+++ b/llvm/test/Transforms/LoopVectorize/no_switch.ll
@@ -16,8 +16,7 @@
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
-; Function Attrs: nounwind optsize ssp uwtable
-define void @_Z11test_switchPii(ptr nocapture %A, i32 %Length) #0 !dbg !4 {
+define void @_Z11test_switchPii(ptr nocapture %A, i32 %Length) !dbg !4 {
entry:
%cmp18 = icmp sgt i32 %Length, 0, !dbg !10
br i1 %cmp18, label %for.body.preheader, label %for.end, !dbg !10, !llvm.loop !12
@@ -59,8 +58,6 @@ for.end: ; preds = %for.end.loopexit, %
ret void, !dbg !24
}
-attributes #0 = { nounwind }
-
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!7, !8}
!llvm.ident = !{!9}
diff --git a/llvm/test/Transforms/LoopVectorize/no_switch_disable_vectorization.ll b/llvm/test/Transforms/LoopVectorize/no_switch_disable_vectorization.ll
index d9ebaebb16a0c..2a3c7749780a2 100644
--- a/llvm/test/Transforms/LoopVectorize/no_switch_disable_vectorization.ll
+++ b/llvm/test/Transforms/LoopVectorize/no_switch_disable_vectorization.ll
@@ -20,8 +20,7 @@
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
-; Function Attrs: nounwind optsize ssp uwtable
-define void @_Z11test_switchPii(ptr nocapture %A, i32 %Length) #0 !dbg !4 {
+define void @_Z11test_switchPii(ptr nocapture %A, i32 %Length) !dbg !4 {
entry:
%cmp18 = icmp sgt i32 %Length, 0, !dbg !10
br i1 %cmp18, label %for.body.preheader, label %for.end, !dbg !10, !llvm.loop !12
@@ -63,8 +62,6 @@ for.end: ; preds = %for.end.loopexit, %
ret void, !dbg !24
}
-attributes #0 = { nounwind }
-
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!7, !8}
!llvm.ident = !{!9}
diff --git a/llvm/test/Transforms/LoopVectorize/pointer-induction.ll b/llvm/test/Transforms/LoopVectorize/pointer-induction.ll
index 60cb29dec260a..57b82f9752446 100644
--- a/llvm/test/Transforms/LoopVectorize/pointer-induction.ll
+++ b/llvm/test/Transforms/LoopVectorize/pointer-induction.ll
@@ -5,7 +5,6 @@ target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16
; Note: Most scalar pointer induction GEPs could be sunk into the conditional
; blocks.
-; Function Attrs: nofree norecurse nounwind
define void @a(ptr readnone %b) {
; CHECK-LABEL: @a(
; CHECK-NEXT: entry:
diff --git a/llvm/test/Transforms/LoopVectorize/reuse-lcssa-phi-scev-expansion.ll b/llvm/test/Transforms/LoopVectorize/reuse-lcssa-phi-scev-expansion.ll
index 55c73cb0928ff..16969dba27725 100644
--- a/llvm/test/Transforms/LoopVectorize/reuse-lcssa-phi-scev-expansion.ll
+++ b/llvm/test/Transforms/LoopVectorize/reuse-lcssa-phi-scev-expansion.ll
@@ -466,7 +466,6 @@ exit:
ret void
}
-; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.cos.f64(double) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
diff --git a/llvm/test/Transforms/LoopVectorize/scalable-assume.ll b/llvm/test/Transforms/LoopVectorize/scalable-assume.ll
index 0a25460a52fad..db482211dc162 100644
--- a/llvm/test/Transforms/LoopVectorize/scalable-assume.ll
+++ b/llvm/test/Transforms/LoopVectorize/scalable-assume.ll
@@ -62,9 +62,7 @@ for.end: ; preds = %for.body
ret void
}
-declare void @llvm.assume(i1) #0
-
-attributes #0 = { nounwind willreturn }
+declare void @llvm.assume(i1)
%struct.data = type { ptr, ptr }
More information about the llvm-commits
mailing list