diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-12-09 17:07:14 +0530 |
---|---|---|
committer | Matt Arsenault <arsenm2@gmail.com> | 2020-01-07 10:10:25 -0500 |
commit | f26ed6e47cb8b080c236d11c4942a12265180084 (patch) | |
tree | a45cd666e9495669e5e2471e5258bce395217a26 /llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll | |
parent | a428386d4a805f94299e5013805ddd4a2114f5f5 (diff) | |
download | bcm5719-llvm-f26ed6e47cb8b080c236d11c4942a12265180084.tar.gz bcm5719-llvm-f26ed6e47cb8b080c236d11c4942a12265180084.zip |
llc: Change behavior of -mcpu with existing attribute
Don't overwrite existing target-cpu attributes.
I've often found the replacement behavior annoying, and this is
inconsistent with how the fast math command line flags interact with
the function attributes.
Does not yet change target-features, since I think that should behave
as a concatenation.
Diffstat (limited to 'llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll')
-rw-r--r-- | llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll b/llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll index 385f76d4f0a..2e31f661234 100644 --- a/llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll +++ b/llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll @@ -67,7 +67,7 @@ entry: ; Function Attrs: nounwind readnone declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 -attributes #0 = { noinline nounwind "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"="gfx700" "target-features"="+fp64-fp16-denormals,-fp32-denormals" "unsafe-fp-math"="false" "use-soft-float"="false" } +attributes #0 = { noinline nounwind "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-features"="+fp64-fp16-denormals,-fp32-denormals" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #1 = { nounwind readnone } !llvm.dbg.cu = !{!0} |