diff options
| author | bors <bors@rust-lang.org> | 2024-12-13 08:32:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-12-13 08:32:20 +0000 |
| commit | dd436ae2a628c523c967a7876873a96c44b1e382 (patch) | |
| tree | d51ba38fa449f1a7800fef03f19565ac9a3e7cb6 /tests/codegen | |
| parent | 3da8bfb87f2bdcff56ed845383aa1c4fcd2c8705 (diff) | |
| parent | a7fc76a3ab640fa1d6d95b6b722ed4d82d4e333e (diff) | |
| download | rust-dd436ae2a628c523c967a7876873a96c44b1e382.tar.gz rust-dd436ae2a628c523c967a7876873a96c44b1e382.zip | |
Auto merge of #133899 - scottmcm:strip-mir-debuginfo, r=oli-obk
We don't need `NonNull::as_ptr` debuginfo In order to stop pessimizing the use of local variables in core, skip debug info for MIR temporaries in tiny (single-BB) functions. For functions as simple as this -- `Pin::new`, etc -- nobody every actually wants debuginfo for them in the first place. They're more like intrinsics than real functions, and stepping over them is good.
Diffstat (limited to 'tests/codegen')
| -rw-r--r-- | tests/codegen/mem-replace-big-type.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/codegen/mem-replace-big-type.rs b/tests/codegen/mem-replace-big-type.rs index e62adfa0ba6..0b2229ba7d1 100644 --- a/tests/codegen/mem-replace-big-type.rs +++ b/tests/codegen/mem-replace-big-type.rs @@ -25,9 +25,10 @@ pub fn replace_big(dst: &mut Big, src: Big) -> Big { // CHECK-NOT: call void @llvm.memcpy // For a large type, we expect exactly three `memcpy`s -// CHECK-LABEL: define internal void @{{.+}}mem{{.+}}replace{{.+}}sret([56 x i8]) +// CHECK-LABEL: define internal void @{{.+}}mem{{.+}}replace{{.+}}(ptr +// CHECK-SAME: sret([56 x i8]){{.+}}[[RESULT:%.+]], ptr{{.+}}%dest, ptr{{.+}}%src) // CHECK-NOT: call void @llvm.memcpy -// CHECK: call void @llvm.memcpy.{{.+}}(ptr align 8 %result, ptr align 8 %dest, i{{.*}} 56, i1 false) +// CHECK: call void @llvm.memcpy.{{.+}}(ptr align 8 [[RESULT]], ptr align 8 %dest, i{{.*}} 56, i1 false) // CHECK-NOT: call void @llvm.memcpy // CHECK: call void @llvm.memcpy.{{.+}}(ptr align 8 %dest, ptr align 8 %src, i{{.*}} 56, i1 false) // CHECK-NOT: call void @llvm.memcpy |
