about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2016-09-21 12:17:56 -0700
committerPatrick Walton <pcwalton@mimiga.net>2016-09-24 10:47:33 -0700
commit79cb2dbfac51c79f08f823519c2cc69bf5382f6f (patch)
tree204d1d8f2387df1a37b7aa3e42860fba466ef6e9 /src/test/codegen
parentbdad70213b32454837c0ed16dbbac3954325feea (diff)
downloadrust-79cb2dbfac51c79f08f823519c2cc69bf5382f6f.tar.gz
rust-79cb2dbfac51c79f08f823519c2cc69bf5382f6f.zip
librustc_mir: Propagate constants during copy propagation.
This optimization kicks in a lot when bootstrapping the compiler.
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/refs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/codegen/refs.rs b/src/test/codegen/refs.rs
index 891ca03cc4d..49ed2229fcd 100644
--- a/src/test/codegen/refs.rs
+++ b/src/test/codegen/refs.rs
@@ -23,9 +23,9 @@ fn helper(_: usize) {
 pub fn ref_dst(s: &[u8]) {
     // We used to generate an extra alloca and memcpy to ref the dst, so check that we copy
     // directly to the alloca for "x"
-// CHECK: [[X0:%[0-9]+]] = getelementptr {{.*}} { i8*, [[USIZE]] }* %s, i32 0, i32 0
+// CHECK: [[X0:%[0-9]+]] = getelementptr {{.*}} { i8*, [[USIZE]] }* %x, i32 0, i32 0
 // CHECK: store i8* %0, i8** [[X0]]
-// CHECK: [[X1:%[0-9]+]] = getelementptr {{.*}} { i8*, [[USIZE]] }* %s, i32 0, i32 1
+// CHECK: [[X1:%[0-9]+]] = getelementptr {{.*}} { i8*, [[USIZE]] }* %x, i32 0, i32 1
 // CHECK: store [[USIZE]] %1, [[USIZE]]* [[X1]]
 
     let x = &*s;