Skip to content

Conversation

@paperchalice
Copy link
Contributor

Post cleanup for #164534.
Not all attributes are stripped, some of them may affect debug info.

@llvmbot
Copy link
Member

llvmbot commented Oct 27, 2025

@llvm/pr-subscribers-backend-webassembly
@llvm/pr-subscribers-backend-mips
@llvm/pr-subscribers-debuginfo

@llvm/pr-subscribers-backend-risc-v

Author: None (paperchalice)

Changes

Post cleanup for #164534.
Not all attributes are stripped, some of them may affect debug info.


Patch is 193.54 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/164966.diff

166 Files Affected:

  • (modified) llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll (+1-1)
  • (modified) llvm/test/DebugInfo/ARM/multiple-constant-uses-drops-dbgloc.ll (+1-1)
  • (modified) llvm/test/DebugInfo/BPF/extern-void.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/array-odr-violation.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/asan-module-ctor.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/asm.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/class-options-common.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/comdat.ll (+5-5)
  • (modified) llvm/test/DebugInfo/COFF/cpp-mangling.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/defer-complete-type.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/enum-co.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/fpo-argsize.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/fpo-csrs.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/fpo-funclet.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/fpo-realign-alloca.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/fpo-shrink-wrap.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/fpo-stack-protect.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/frameproc-flags.ll (+7-7)
  • (modified) llvm/test/DebugInfo/COFF/function-options.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/global-constants.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/global_visibility.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/globals.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/inheritance.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/inlining-files.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/inlining-header.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/inlining-levels.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/inlining-padding.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/inlining.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/lambda.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/lexicalblock.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/lines-difile.ll (+3-3)
  • (modified) llvm/test/DebugInfo/COFF/local-constant.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/local-variable-gap.ll (+3-3)
  • (modified) llvm/test/DebugInfo/COFF/local-variables.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/long-name.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/multifile.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/multifunction.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/nrvo.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/parameter-order.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/parent-type-scopes.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/pieces.ll (+4-4)
  • (modified) llvm/test/DebugInfo/COFF/purge-typedef-udts.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/register-variables.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/retained-types.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/scopes.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/simple.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/static-methods.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/tail-call-without-lexical-scopes.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/thunk.ll (+5-5)
  • (modified) llvm/test/DebugInfo/COFF/type-quals.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/types-array.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/types-basic.ll (+3-3)
  • (modified) llvm/test/DebugInfo/COFF/types-calling-conv.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/types-cvarargs.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/types-data-members.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/types-method-ref-qualifiers.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/types-recursive-struct.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/types-recursive-unnamed.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/udts.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/unnamed.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/vframe-csr.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/vframe-fpo.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/vftables.ll (+4-4)
  • (modified) llvm/test/DebugInfo/COFF/virtual-method-kinds.ll (+4-4)
  • (modified) llvm/test/DebugInfo/COFF/virtual-methods.ll (+4-4)
  • (modified) llvm/test/DebugInfo/COFF/vtable-optzn-array.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/PR20038.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/block-asan.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/constant-pointers.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/cross-cu-inlining.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/cross-cu-linkonce.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/cu-range-hole.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/cu-ranges.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/dead-argument-order.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/debug-info-always-inline.ll (+3-3)
  • (modified) llvm/test/DebugInfo/Generic/def-line.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/directives-only.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/discriminator.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/enum-types.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/enum.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/extended-loc-directive.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/global-sra-array.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/global.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/incorrect-variable-debugloc.ll (+3-3)
  • (modified) llvm/test/DebugInfo/Generic/incorrect-variable-debugloc1.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/inline-no-debug-info.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/inline-scopes.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/inlined-arguments.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/inlined-strings.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/lto-comp-dir.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/mainsubprogram.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/member-order.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/multiline.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/namespace.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/namespace_function_definition.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/namespace_inline_function_definition.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/recursive_inlining.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/restrict.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/tu-composite.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/unconditional-branch.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/version.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Inputs/gmlt.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Inputs/line.ll (+1-1)
  • (modified) llvm/test/DebugInfo/MSP430/cu-ranges.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Mips/fn-call-line.ll (+2-2)
  • (modified) llvm/test/DebugInfo/NVPTX/cu-range-hole.ll (+1-1)
  • (modified) llvm/test/DebugInfo/NVPTX/debug-info.ll (+1-1)
  • (modified) llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll (+2-2)
  • (modified) llvm/test/DebugInfo/RISCV/dwarf-riscv-relocs.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Sparc/gnu-window-save.ll (+2-2)
  • (modified) llvm/test/DebugInfo/WebAssembly/dbg-loop-loc.ll (+1-1)
  • (modified) llvm/test/DebugInfo/WebAssembly/debugtest-opt.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/DW_AT_calling-convention.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/DW_AT_stmt_list_sec_offset.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/addr_comments.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/arguments.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/coff_debug_info_type.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/coff_relative_names.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/convert-loclist.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/cu-ranges-odr.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/cu-ranges.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/dbg_value_direct.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/debug-dead-local-var.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/debug-info-blocks.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/debug-loc-asan.mir (+1-1)
  • (modified) llvm/test/DebugInfo/X86/debug-loc-offset.mir (+2-2)
  • (modified) llvm/test/DebugInfo/X86/debug-ranges-offset.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/decl-derived-member.ll (+3-3)
  • (modified) llvm/test/DebugInfo/X86/discriminator.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/discriminator2.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/discriminator3.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/dwarf-aranges-no-dwarf-labels.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/dwarf-linkage-names.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/dwarf-pubnames-split.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/fission-inline.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/fission-no-inline-gsym.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/fission-no-inlining.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/fission-ranges.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/generate-odr-hash.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/ghost-sdnode-dbgvalues.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/gmlt-empty-base-address.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/gnu-public-names-gmlt.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/gnu-public-names.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/inline-member-function.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/inline-seldag-test.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/lexical_block.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/line-info.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/low-pc-cu.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/mi-print.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/missing-abstract-variable.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/no_debug_ranges.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/nodebug.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/nodebug_with_debug_loc.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/objc-property-void.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/pieces-4.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/pr19307.mir (+2-2)
  • (modified) llvm/test/DebugInfo/X86/pr28270.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/pr45181.ll (+3-3)
  • (modified) llvm/test/DebugInfo/X86/safestack-byval.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/set.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/spill-nospill.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/sret.ll (+3-3)
  • (modified) llvm/test/DebugInfo/X86/tls.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/tu-to-non-named-type.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/void-typedef.ll (+1-1)
diff --git a/llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll b/llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll
index 35b7b044abb55..98dc82afd33ab 100644
--- a/llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll
+++ b/llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll
@@ -60,7 +60,7 @@ 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 optsize readnone "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind optsize readnone "frame-pointer"="none" "no-realign-stack" "stack-protector-buffer-size"="8" }
 attributes #1 = { nounwind readnone }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/ARM/multiple-constant-uses-drops-dbgloc.ll b/llvm/test/DebugInfo/ARM/multiple-constant-uses-drops-dbgloc.ll
index d21f1bf5bd905..42c8c46cb060d 100644
--- a/llvm/test/DebugInfo/ARM/multiple-constant-uses-drops-dbgloc.ll
+++ b/llvm/test/DebugInfo/ARM/multiple-constant-uses-drops-dbgloc.ll
@@ -27,7 +27,7 @@ entry:
   ret void, !dbg !19
 }
 
-attributes #0 = { nounwind "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"="+neon,+vfp3" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="all" "stack-protector-buffer-size"="8" "target-cpu"="cortex-a8" "target-features"="+neon,+vfp3" }
 
 !llvm.dbg.cu = !{!2}
 !llvm.module.flags = !{!8, !9, !10, !11}
diff --git a/llvm/test/DebugInfo/BPF/extern-void.ll b/llvm/test/DebugInfo/BPF/extern-void.ll
index 8fc8089dea8cf..c0046bfda16d8 100644
--- a/llvm/test/DebugInfo/BPF/extern-void.ll
+++ b/llvm/test/DebugInfo/BPF/extern-void.ll
@@ -42,7 +42,7 @@ entry:
 ; Function Attrs: nounwind readnone speculatable willreturn
 declare void @llvm.dbg.value(metadata, metadata, metadata) #1
 
-attributes #0 = { norecurse nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { norecurse nounwind readnone "frame-pointer"="all" "min-legal-vector-width"="0" "no-jump-tables"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
 attributes #1 = { nounwind readnone speculatable willreturn }
 
 !llvm.dbg.cu = !{!2}
diff --git a/llvm/test/DebugInfo/COFF/array-odr-violation.ll b/llvm/test/DebugInfo/COFF/array-odr-violation.ll
index 0283515c269bc..fe5b138256b47 100644
--- a/llvm/test/DebugInfo/COFF/array-odr-violation.ll
+++ b/llvm/test/DebugInfo/COFF/array-odr-violation.ll
@@ -57,7 +57,7 @@ entry:
 ; Function Attrs: nounwind readnone
 declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
 
-attributes #0 = { noinline nounwind sspstrong uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone }
 
 !llvm.dbg.cu = !{!2, !11}
diff --git a/llvm/test/DebugInfo/COFF/asan-module-ctor.ll b/llvm/test/DebugInfo/COFF/asan-module-ctor.ll
index 49c30e9886545..095a7046d0aed 100644
--- a/llvm/test/DebugInfo/COFF/asan-module-ctor.ll
+++ b/llvm/test/DebugInfo/COFF/asan-module-ctor.ll
@@ -76,7 +76,7 @@ declare void @__asan_register_globals(i32, i32)
 
 declare void @__asan_unregister_globals(i32, i32)
 
-attributes #0 = { nounwind sanitize_address "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind sanitize_address "frame-pointer"="none" "no-realign-stack" "stack-protector-buffer-size"="8" }
 
 !llvm.dbg.cu = !{!0}
 !llvm.module.flags = !{!7, !8}
diff --git a/llvm/test/DebugInfo/COFF/asm.ll b/llvm/test/DebugInfo/COFF/asm.ll
index cf440bd75fa34..2e11b232f9842 100644
--- a/llvm/test/DebugInfo/COFF/asm.ll
+++ b/llvm/test/DebugInfo/COFF/asm.ll
@@ -145,8 +145,8 @@ entry:
 
 declare void @g() #1
 
-attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #1 = { "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="none" "no-realign-stack" "stack-protector-buffer-size"="8" }
+attributes #1 = { "frame-pointer"="none" "no-realign-stack" "stack-protector-buffer-size"="8" }
 attributes #2 = { nounwind }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/COFF/class-options-common.ll b/llvm/test/DebugInfo/COFF/class-options-common.ll
index 700714613a759..0846ce203d9be 100644
--- a/llvm/test/DebugInfo/COFF/class-options-common.ll
+++ b/llvm/test/DebugInfo/COFF/class-options-common.ll
@@ -840,7 +840,7 @@ entry:
   ret void, !dbg !173
 }
 
-attributes #0 = { noinline nounwind optnone uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "frame-pointer"="none" "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"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { noinline nounwind optnone uwtable "min-legal-vector-width"="0" "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone speculatable }
 
 !llvm.dbg.cu = !{!2}
diff --git a/llvm/test/DebugInfo/COFF/comdat.ll b/llvm/test/DebugInfo/COFF/comdat.ll
index 841630c087ad3..9d326e2756825 100644
--- a/llvm/test/DebugInfo/COFF/comdat.ll
+++ b/llvm/test/DebugInfo/COFF/comdat.ll
@@ -129,11 +129,11 @@ declare i32 @__C_specific_handler(...)
 ; Function Attrs: nounwind readnone
 declare void @llvm.dbg.value(metadata, metadata, metadata) #5
 
-attributes #0 = { norecurse nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #1 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #2 = { inlinehint noinline nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #3 = { nounwind "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #4 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { norecurse nounwind uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #1 = { nounwind uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #2 = { inlinehint noinline nounwind uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #3 = { nounwind "frame-pointer"="none" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #4 = { "frame-pointer"="none" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #5 = { nounwind readnone }
 attributes #6 = { noinline }
 attributes #7 = { nounwind }
diff --git a/llvm/test/DebugInfo/COFF/cpp-mangling.ll b/llvm/test/DebugInfo/COFF/cpp-mangling.ll
index 994f575cd09ef..6d0b45b4462d5 100644
--- a/llvm/test/DebugInfo/COFF/cpp-mangling.ll
+++ b/llvm/test/DebugInfo/COFF/cpp-mangling.ll
@@ -72,7 +72,7 @@ entry:
   ret void, !dbg !32
 }
 
-attributes #0 = { nounwind "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="all" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/COFF/defer-complete-type.ll b/llvm/test/DebugInfo/COFF/defer-complete-type.ll
index 012b234affa5f..3de53b7b46937 100644
--- a/llvm/test/DebugInfo/COFF/defer-complete-type.ll
+++ b/llvm/test/DebugInfo/COFF/defer-complete-type.ll
@@ -172,7 +172,7 @@ entry:
 ; Function Attrs: nounwind readnone
 declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
 
-attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/COFF/enum-co.ll b/llvm/test/DebugInfo/COFF/enum-co.ll
index b5ce797374a06..4d8cbde11beca 100644
--- a/llvm/test/DebugInfo/COFF/enum-co.ll
+++ b/llvm/test/DebugInfo/COFF/enum-co.ll
@@ -125,7 +125,7 @@ entry:
   ret void, !dbg !46
 }
 
-attributes #0 = { noinline nounwind optnone uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { noinline nounwind optnone uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone speculatable }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/COFF/fpo-argsize.ll b/llvm/test/DebugInfo/COFF/fpo-argsize.ll
index 82eedd95564bb..660b34845c9a8 100644
--- a/llvm/test/DebugInfo/COFF/fpo-argsize.ll
+++ b/llvm/test/DebugInfo/COFF/fpo-argsize.ll
@@ -285,7 +285,7 @@ entry:
   ret void, !dbg !159
 }
 
-attributes #0 = { noinline nounwind optnone "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { noinline nounwind optnone "frame-pointer"="all" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone speculatable }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/COFF/fpo-csrs.ll b/llvm/test/DebugInfo/COFF/fpo-csrs.ll
index c5b1dc996f3ba..ddef982ebe045 100644
--- a/llvm/test/DebugInfo/COFF/fpo-csrs.ll
+++ b/llvm/test/DebugInfo/COFF/fpo-csrs.ll
@@ -581,8 +581,8 @@ entry:
 ; Function Attrs: nounwind readnone speculatable
 declare void @llvm.dbg.value(metadata, metadata, metadata) #2
 
-attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #1 = { "frame-pointer"="none" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #2 = { nounwind readnone speculatable }
 attributes #3 = { nounwind }
 
diff --git a/llvm/test/DebugInfo/COFF/fpo-funclet.ll b/llvm/test/DebugInfo/COFF/fpo-funclet.ll
index 302c4a23b7d6c..cdfd9fd5c9c5d 100644
--- a/llvm/test/DebugInfo/COFF/fpo-funclet.ll
+++ b/llvm/test/DebugInfo/COFF/fpo-funclet.ll
@@ -58,8 +58,8 @@ declare void @"\01?g@@YAXXZ"() local_unnamed_addr #1
 
 declare i32 @__CxxFrameHandler3(...)
 
-attributes #0 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { "frame-pointer"="non-leaf" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #1 = { "frame-pointer"="non-leaf" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 
 !llvm.dbg.cu = !{!0}
 !llvm.module.flags = !{!3, !4, !5, !6}
diff --git a/llvm/test/DebugInfo/COFF/fpo-realign-alloca.ll b/llvm/test/DebugInfo/COFF/fpo-realign-alloca.ll
index 5bd19a03e745c..87c7c51dc2446 100644
--- a/llvm/test/DebugInfo/COFF/fpo-realign-alloca.ll
+++ b/llvm/test/DebugInfo/COFF/fpo-realign-alloca.ll
@@ -76,9 +76,9 @@ declare void @llvm.lifetime.end.p0(i64, ptr nocapture) #1
 ; Function Attrs: nounwind readnone speculatable
 declare void @llvm.dbg.value(metadata, metadata, metadata) #3
 
-attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { argmemonly nounwind }
-attributes #2 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #2 = { "frame-pointer"="none" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #3 = { nounwind readnone speculatable }
 attributes #4 = { nounwind }
 
diff --git a/llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll b/llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll
index 5f1d6a5c28def..beca2a9bea747 100644
--- a/llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll
+++ b/llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll
@@ -191,10 +191,10 @@ declare dso_local void @usevals(ptr, ptr, ptr) local_unnamed_addr #3
 ; Function Attrs: argmemonly nounwind
 declare void @llvm.lifetime.end.p0(i64, ptr nocapture) #2
 
-attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone speculatable }
 attributes #2 = { argmemonly nounwind }
-attributes #3 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attribu...
[truncated]

@llvmbot
Copy link
Member

llvmbot commented Oct 27, 2025

@llvm/pr-subscribers-backend-nvptx

Author: None (paperchalice)

Changes

Post cleanup for #164534.
Not all attributes are stripped, some of them may affect debug info.


Patch is 193.54 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/164966.diff

166 Files Affected:

  • (modified) llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll (+1-1)
  • (modified) llvm/test/DebugInfo/ARM/multiple-constant-uses-drops-dbgloc.ll (+1-1)
  • (modified) llvm/test/DebugInfo/BPF/extern-void.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/array-odr-violation.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/asan-module-ctor.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/asm.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/class-options-common.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/comdat.ll (+5-5)
  • (modified) llvm/test/DebugInfo/COFF/cpp-mangling.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/defer-complete-type.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/enum-co.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/fpo-argsize.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/fpo-csrs.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/fpo-funclet.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/fpo-realign-alloca.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/fpo-shrink-wrap.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/fpo-stack-protect.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/frameproc-flags.ll (+7-7)
  • (modified) llvm/test/DebugInfo/COFF/function-options.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/global-constants.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/global_visibility.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/globals.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/inheritance.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/inlining-files.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/inlining-header.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/inlining-levels.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/inlining-padding.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/inlining.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/lambda.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/lexicalblock.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/lines-difile.ll (+3-3)
  • (modified) llvm/test/DebugInfo/COFF/local-constant.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/local-variable-gap.ll (+3-3)
  • (modified) llvm/test/DebugInfo/COFF/local-variables.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/long-name.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/multifile.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/multifunction.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/nrvo.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/parameter-order.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/parent-type-scopes.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/pieces.ll (+4-4)
  • (modified) llvm/test/DebugInfo/COFF/purge-typedef-udts.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/register-variables.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/retained-types.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/scopes.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/simple.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/static-methods.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/tail-call-without-lexical-scopes.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/thunk.ll (+5-5)
  • (modified) llvm/test/DebugInfo/COFF/type-quals.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/types-array.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/types-basic.ll (+3-3)
  • (modified) llvm/test/DebugInfo/COFF/types-calling-conv.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/types-cvarargs.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/types-data-members.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/types-method-ref-qualifiers.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/types-recursive-struct.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/types-recursive-unnamed.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/udts.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/unnamed.ll (+1-1)
  • (modified) llvm/test/DebugInfo/COFF/vframe-csr.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/vframe-fpo.ll (+2-2)
  • (modified) llvm/test/DebugInfo/COFF/vftables.ll (+4-4)
  • (modified) llvm/test/DebugInfo/COFF/virtual-method-kinds.ll (+4-4)
  • (modified) llvm/test/DebugInfo/COFF/virtual-methods.ll (+4-4)
  • (modified) llvm/test/DebugInfo/COFF/vtable-optzn-array.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/PR20038.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/block-asan.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/constant-pointers.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/cross-cu-inlining.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/cross-cu-linkonce.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/cu-range-hole.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/cu-ranges.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/dead-argument-order.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/debug-info-always-inline.ll (+3-3)
  • (modified) llvm/test/DebugInfo/Generic/def-line.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/directives-only.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/discriminator.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/enum-types.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/enum.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/extended-loc-directive.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/global-sra-array.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/global.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/incorrect-variable-debugloc.ll (+3-3)
  • (modified) llvm/test/DebugInfo/Generic/incorrect-variable-debugloc1.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/inline-no-debug-info.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/inline-scopes.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/inlined-arguments.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/inlined-strings.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/lto-comp-dir.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/mainsubprogram.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/member-order.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/multiline.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/namespace.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/namespace_function_definition.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/namespace_inline_function_definition.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/recursive_inlining.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Generic/restrict.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/tu-composite.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/unconditional-branch.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Generic/version.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Inputs/gmlt.ll (+2-2)
  • (modified) llvm/test/DebugInfo/Inputs/line.ll (+1-1)
  • (modified) llvm/test/DebugInfo/MSP430/cu-ranges.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Mips/fn-call-line.ll (+2-2)
  • (modified) llvm/test/DebugInfo/NVPTX/cu-range-hole.ll (+1-1)
  • (modified) llvm/test/DebugInfo/NVPTX/debug-info.ll (+1-1)
  • (modified) llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll (+2-2)
  • (modified) llvm/test/DebugInfo/RISCV/dwarf-riscv-relocs.ll (+1-1)
  • (modified) llvm/test/DebugInfo/Sparc/gnu-window-save.ll (+2-2)
  • (modified) llvm/test/DebugInfo/WebAssembly/dbg-loop-loc.ll (+1-1)
  • (modified) llvm/test/DebugInfo/WebAssembly/debugtest-opt.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/DW_AT_calling-convention.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/DW_AT_stmt_list_sec_offset.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/addr_comments.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/arguments.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/coff_debug_info_type.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/coff_relative_names.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/convert-loclist.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/cu-ranges-odr.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/cu-ranges.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/dbg_value_direct.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/debug-dead-local-var.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/debug-info-blocks.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/debug-loc-asan.mir (+1-1)
  • (modified) llvm/test/DebugInfo/X86/debug-loc-offset.mir (+2-2)
  • (modified) llvm/test/DebugInfo/X86/debug-ranges-offset.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/decl-derived-member.ll (+3-3)
  • (modified) llvm/test/DebugInfo/X86/discriminator.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/discriminator2.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/discriminator3.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/dwarf-aranges-no-dwarf-labels.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/dwarf-linkage-names.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/dwarf-pubnames-split.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/fission-inline.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/fission-no-inline-gsym.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/fission-no-inlining.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/fission-ranges.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/generate-odr-hash.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/ghost-sdnode-dbgvalues.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/gmlt-empty-base-address.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/gnu-public-names-gmlt.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/gnu-public-names.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/inline-member-function.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/inline-seldag-test.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/lexical_block.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/line-info.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/low-pc-cu.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/mi-print.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/missing-abstract-variable.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/no_debug_ranges.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/nodebug.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/nodebug_with_debug_loc.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/objc-property-void.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/pieces-4.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/pr19307.mir (+2-2)
  • (modified) llvm/test/DebugInfo/X86/pr28270.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/pr45181.ll (+3-3)
  • (modified) llvm/test/DebugInfo/X86/safestack-byval.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/set.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/spill-nospill.ll (+2-2)
  • (modified) llvm/test/DebugInfo/X86/sret.ll (+3-3)
  • (modified) llvm/test/DebugInfo/X86/tls.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/tu-to-non-named-type.ll (+1-1)
  • (modified) llvm/test/DebugInfo/X86/void-typedef.ll (+1-1)
diff --git a/llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll b/llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll
index 35b7b044abb55..98dc82afd33ab 100644
--- a/llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll
+++ b/llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll
@@ -60,7 +60,7 @@ 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 optsize readnone "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind optsize readnone "frame-pointer"="none" "no-realign-stack" "stack-protector-buffer-size"="8" }
 attributes #1 = { nounwind readnone }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/ARM/multiple-constant-uses-drops-dbgloc.ll b/llvm/test/DebugInfo/ARM/multiple-constant-uses-drops-dbgloc.ll
index d21f1bf5bd905..42c8c46cb060d 100644
--- a/llvm/test/DebugInfo/ARM/multiple-constant-uses-drops-dbgloc.ll
+++ b/llvm/test/DebugInfo/ARM/multiple-constant-uses-drops-dbgloc.ll
@@ -27,7 +27,7 @@ entry:
   ret void, !dbg !19
 }
 
-attributes #0 = { nounwind "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"="+neon,+vfp3" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="all" "stack-protector-buffer-size"="8" "target-cpu"="cortex-a8" "target-features"="+neon,+vfp3" }
 
 !llvm.dbg.cu = !{!2}
 !llvm.module.flags = !{!8, !9, !10, !11}
diff --git a/llvm/test/DebugInfo/BPF/extern-void.ll b/llvm/test/DebugInfo/BPF/extern-void.ll
index 8fc8089dea8cf..c0046bfda16d8 100644
--- a/llvm/test/DebugInfo/BPF/extern-void.ll
+++ b/llvm/test/DebugInfo/BPF/extern-void.ll
@@ -42,7 +42,7 @@ entry:
 ; Function Attrs: nounwind readnone speculatable willreturn
 declare void @llvm.dbg.value(metadata, metadata, metadata) #1
 
-attributes #0 = { norecurse nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { norecurse nounwind readnone "frame-pointer"="all" "min-legal-vector-width"="0" "no-jump-tables"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
 attributes #1 = { nounwind readnone speculatable willreturn }
 
 !llvm.dbg.cu = !{!2}
diff --git a/llvm/test/DebugInfo/COFF/array-odr-violation.ll b/llvm/test/DebugInfo/COFF/array-odr-violation.ll
index 0283515c269bc..fe5b138256b47 100644
--- a/llvm/test/DebugInfo/COFF/array-odr-violation.ll
+++ b/llvm/test/DebugInfo/COFF/array-odr-violation.ll
@@ -57,7 +57,7 @@ entry:
 ; Function Attrs: nounwind readnone
 declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
 
-attributes #0 = { noinline nounwind sspstrong uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone }
 
 !llvm.dbg.cu = !{!2, !11}
diff --git a/llvm/test/DebugInfo/COFF/asan-module-ctor.ll b/llvm/test/DebugInfo/COFF/asan-module-ctor.ll
index 49c30e9886545..095a7046d0aed 100644
--- a/llvm/test/DebugInfo/COFF/asan-module-ctor.ll
+++ b/llvm/test/DebugInfo/COFF/asan-module-ctor.ll
@@ -76,7 +76,7 @@ declare void @__asan_register_globals(i32, i32)
 
 declare void @__asan_unregister_globals(i32, i32)
 
-attributes #0 = { nounwind sanitize_address "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind sanitize_address "frame-pointer"="none" "no-realign-stack" "stack-protector-buffer-size"="8" }
 
 !llvm.dbg.cu = !{!0}
 !llvm.module.flags = !{!7, !8}
diff --git a/llvm/test/DebugInfo/COFF/asm.ll b/llvm/test/DebugInfo/COFF/asm.ll
index cf440bd75fa34..2e11b232f9842 100644
--- a/llvm/test/DebugInfo/COFF/asm.ll
+++ b/llvm/test/DebugInfo/COFF/asm.ll
@@ -145,8 +145,8 @@ entry:
 
 declare void @g() #1
 
-attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #1 = { "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="none" "no-realign-stack" "stack-protector-buffer-size"="8" }
+attributes #1 = { "frame-pointer"="none" "no-realign-stack" "stack-protector-buffer-size"="8" }
 attributes #2 = { nounwind }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/COFF/class-options-common.ll b/llvm/test/DebugInfo/COFF/class-options-common.ll
index 700714613a759..0846ce203d9be 100644
--- a/llvm/test/DebugInfo/COFF/class-options-common.ll
+++ b/llvm/test/DebugInfo/COFF/class-options-common.ll
@@ -840,7 +840,7 @@ entry:
   ret void, !dbg !173
 }
 
-attributes #0 = { noinline nounwind optnone uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "frame-pointer"="none" "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"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { noinline nounwind optnone uwtable "min-legal-vector-width"="0" "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone speculatable }
 
 !llvm.dbg.cu = !{!2}
diff --git a/llvm/test/DebugInfo/COFF/comdat.ll b/llvm/test/DebugInfo/COFF/comdat.ll
index 841630c087ad3..9d326e2756825 100644
--- a/llvm/test/DebugInfo/COFF/comdat.ll
+++ b/llvm/test/DebugInfo/COFF/comdat.ll
@@ -129,11 +129,11 @@ declare i32 @__C_specific_handler(...)
 ; Function Attrs: nounwind readnone
 declare void @llvm.dbg.value(metadata, metadata, metadata) #5
 
-attributes #0 = { norecurse nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #1 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #2 = { inlinehint noinline nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #3 = { nounwind "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #4 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { norecurse nounwind uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #1 = { nounwind uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #2 = { inlinehint noinline nounwind uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #3 = { nounwind "frame-pointer"="none" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #4 = { "frame-pointer"="none" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #5 = { nounwind readnone }
 attributes #6 = { noinline }
 attributes #7 = { nounwind }
diff --git a/llvm/test/DebugInfo/COFF/cpp-mangling.ll b/llvm/test/DebugInfo/COFF/cpp-mangling.ll
index 994f575cd09ef..6d0b45b4462d5 100644
--- a/llvm/test/DebugInfo/COFF/cpp-mangling.ll
+++ b/llvm/test/DebugInfo/COFF/cpp-mangling.ll
@@ -72,7 +72,7 @@ entry:
   ret void, !dbg !32
 }
 
-attributes #0 = { nounwind "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="all" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/COFF/defer-complete-type.ll b/llvm/test/DebugInfo/COFF/defer-complete-type.ll
index 012b234affa5f..3de53b7b46937 100644
--- a/llvm/test/DebugInfo/COFF/defer-complete-type.ll
+++ b/llvm/test/DebugInfo/COFF/defer-complete-type.ll
@@ -172,7 +172,7 @@ entry:
 ; Function Attrs: nounwind readnone
 declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
 
-attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/COFF/enum-co.ll b/llvm/test/DebugInfo/COFF/enum-co.ll
index b5ce797374a06..4d8cbde11beca 100644
--- a/llvm/test/DebugInfo/COFF/enum-co.ll
+++ b/llvm/test/DebugInfo/COFF/enum-co.ll
@@ -125,7 +125,7 @@ entry:
   ret void, !dbg !46
 }
 
-attributes #0 = { noinline nounwind optnone uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { noinline nounwind optnone uwtable "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone speculatable }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/COFF/fpo-argsize.ll b/llvm/test/DebugInfo/COFF/fpo-argsize.ll
index 82eedd95564bb..660b34845c9a8 100644
--- a/llvm/test/DebugInfo/COFF/fpo-argsize.ll
+++ b/llvm/test/DebugInfo/COFF/fpo-argsize.ll
@@ -285,7 +285,7 @@ entry:
   ret void, !dbg !159
 }
 
-attributes #0 = { noinline nounwind optnone "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { noinline nounwind optnone "frame-pointer"="all" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone speculatable }
 
 !llvm.dbg.cu = !{!0}
diff --git a/llvm/test/DebugInfo/COFF/fpo-csrs.ll b/llvm/test/DebugInfo/COFF/fpo-csrs.ll
index c5b1dc996f3ba..ddef982ebe045 100644
--- a/llvm/test/DebugInfo/COFF/fpo-csrs.ll
+++ b/llvm/test/DebugInfo/COFF/fpo-csrs.ll
@@ -581,8 +581,8 @@ entry:
 ; Function Attrs: nounwind readnone speculatable
 declare void @llvm.dbg.value(metadata, metadata, metadata) #2
 
-attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #1 = { "frame-pointer"="none" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #2 = { nounwind readnone speculatable }
 attributes #3 = { nounwind }
 
diff --git a/llvm/test/DebugInfo/COFF/fpo-funclet.ll b/llvm/test/DebugInfo/COFF/fpo-funclet.ll
index 302c4a23b7d6c..cdfd9fd5c9c5d 100644
--- a/llvm/test/DebugInfo/COFF/fpo-funclet.ll
+++ b/llvm/test/DebugInfo/COFF/fpo-funclet.ll
@@ -58,8 +58,8 @@ declare void @"\01?g@@YAXXZ"() local_unnamed_addr #1
 
 declare i32 @__CxxFrameHandler3(...)
 
-attributes #0 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
-attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { "frame-pointer"="non-leaf" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
+attributes #1 = { "frame-pointer"="non-leaf" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 
 !llvm.dbg.cu = !{!0}
 !llvm.module.flags = !{!3, !4, !5, !6}
diff --git a/llvm/test/DebugInfo/COFF/fpo-realign-alloca.ll b/llvm/test/DebugInfo/COFF/fpo-realign-alloca.ll
index 5bd19a03e745c..87c7c51dc2446 100644
--- a/llvm/test/DebugInfo/COFF/fpo-realign-alloca.ll
+++ b/llvm/test/DebugInfo/COFF/fpo-realign-alloca.ll
@@ -76,9 +76,9 @@ declare void @llvm.lifetime.end.p0(i64, ptr nocapture) #1
 ; Function Attrs: nounwind readnone speculatable
 declare void @llvm.dbg.value(metadata, metadata, metadata) #3
 
-attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { argmemonly nounwind }
-attributes #2 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #2 = { "frame-pointer"="none" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #3 = { nounwind readnone speculatable }
 attributes #4 = { nounwind }
 
diff --git a/llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll b/llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll
index 5f1d6a5c28def..beca2a9bea747 100644
--- a/llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll
+++ b/llvm/test/DebugInfo/COFF/fpo-realign-vframe.ll
@@ -191,10 +191,10 @@ declare dso_local void @usevals(ptr, ptr, ptr) local_unnamed_addr #3
 ; Function Attrs: argmemonly nounwind
 declare void @llvm.lifetime.end.p0(i64, ptr nocapture) #2
 
-attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #0 = { nounwind "frame-pointer"="none" "no-jump-tables"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" }
 attributes #1 = { nounwind readnone speculatable }
 attributes #2 = { argmemonly nounwind }
-attributes #3 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attribu...
[truncated]

Copy link
Contributor

@OCHyams OCHyams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've only scanned but broadly SGTM, we try to suggest that debug info tests have as few as possibly stringy attributes for this reason!

One thing to note, the title says you're removing unsafe-fp-math uses but there's other attributes removed too such as "disable-tail-calls"="false". (Is that the only non-fp attribute that's stripped?).

It'd feel safer (less risk of accidentally introducing a rotten-green test) to only remove the unsafe-fp-math attributes. OTOH, if you would like to proceed with this approach I think the patch title should be updated to reflect that.

Did you use llvm-reduce or some other approach to automatically remove attributes? If so please could you include the methodology in the commit message?

@paperchalice
Copy link
Contributor Author

Remove unsafe-fp-math only now.

@paperchalice paperchalice merged commit 9a39076 into llvm:main Oct 27, 2025
10 checks passed
dvbuka pushed a commit to dvbuka/llvm-project that referenced this pull request Oct 27, 2025
Post cleanup for llvm#164534.
Not all attributes are stripped, some of them may affect debug info.
Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Oct 29, 2025
Post cleanup for llvm#164534.
Not all attributes are stripped, some of them may affect debug info.
aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
Post cleanup for llvm#164534.
Not all attributes are stripped, some of them may affect debug info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants