about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-04-22 20:07:01 +0000
committerbors <bors@rust-lang.org>2017-04-22 20:07:01 +0000
commit252d3da8a6c715ccafcf77d83b826f6fb899cfe5 (patch)
tree423afd3933fff3986184cc690e8e4010eccf16f3 /src/test/codegen
parentcb4065b9ce4e2bb2c37994762462da76272d6907 (diff)
parenta660ad84b3c27de5c0abfb683fb178ba4e4ca87e (diff)
downloadrust-252d3da8a6c715ccafcf77d83b826f6fb899cfe5.tar.gz
rust-252d3da8a6c715ccafcf77d83b826f6fb899cfe5.zip
Auto merge of #41469 - arielb1:rustc-spring-cleaning, r=eddyb
Performance audit, Spring 2017

Fix up some quite important performance "surprises" I've found running callgrind on rustc.
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/drop.rs2
-rw-r--r--src/test/codegen/personality_lifetimes.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/test/codegen/drop.rs b/src/test/codegen/drop.rs
index a4bd5cf2c15..d7e2cb6d9a5 100644
--- a/src/test/codegen/drop.rs
+++ b/src/test/codegen/drop.rs
@@ -36,7 +36,7 @@ pub fn droppy() {
 // CHECK-NOT: call{{.*}}drop{{.*}}SomeUniqueName
 // CHECK: invoke{{.*}}drop{{.*}}SomeUniqueName
 // CHECK: invoke{{.*}}drop{{.*}}SomeUniqueName
-// CHECK: invoke{{.*}}drop{{.*}}SomeUniqueName
+// CHECK: call{{.*}}drop{{.*}}SomeUniqueName
 // CHECK-NOT: {{(call|invoke).*}}drop{{.*}}SomeUniqueName
 // The next line checks for the } that ends the function definition
 // CHECK-LABEL: {{^[}]}}
diff --git a/src/test/codegen/personality_lifetimes.rs b/src/test/codegen/personality_lifetimes.rs
index e0de64b26df..9fd600b32e6 100644
--- a/src/test/codegen/personality_lifetimes.rs
+++ b/src/test/codegen/personality_lifetimes.rs
@@ -37,5 +37,6 @@ pub fn test() {
     // CHECK: bitcast{{.*}}personalityslot
     // CHECK-NEXT: call void @llvm.lifetime.start
     might_unwind();
+    let _t = S;
     might_unwind();
 }