diff options
| author | bors <bors@rust-lang.org> | 2016-09-24 10:48:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-24 10:48:42 -0700 |
| commit | 05c2fdd64f3f4acc358b653616de6034eced49b5 (patch) | |
| tree | 204d1d8f2387df1a37b7aa3e42860fba466ef6e9 /src/test/codegen | |
| parent | bdad70213b32454837c0ed16dbbac3954325feea (diff) | |
| parent | 79cb2dbfac51c79f08f823519c2cc69bf5382f6f (diff) | |
| download | rust-05c2fdd64f3f4acc358b653616de6034eced49b5.tar.gz rust-05c2fdd64f3f4acc358b653616de6034eced49b5.zip | |
Auto merge of #36639 - pcwalton:const-prop, r=eddyb
librustc_mir: Propagate constants during copy propagation. This optimization kicks in a lot when bootstrapping the compiler. r? @eddyb
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/refs.rs | 4 |
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; |
