diff options
| author | bors <bors@rust-lang.org> | 2016-09-20 08:01:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-20 08:01:01 -0700 |
| commit | c772948b687488a087356cb91432425662e034b9 (patch) | |
| tree | bff1c7822b91450f04d0cabaf98ee85b0df9b2ce /src/test/codegen | |
| parent | 2c2552b712386dd01a9d620aff960b98cddb4098 (diff) | |
| parent | 480287ec3b0260e26c8796506039c379bd7e0ead (diff) | |
| download | rust-c772948b687488a087356cb91432425662e034b9.tar.gz rust-c772948b687488a087356cb91432425662e034b9.zip | |
Auto merge of #36388 - pcwalton:copy-propagation, r=nikomatsakis
librustc_mir: Implement def-use chains and trivial copy propagation on MIR. This only supports trivial cases in which there is exactly one def and one use. Currently, some random unrelated MIR tests are failing, probably just because they haven't been updated. 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 49ed2229fcd..891ca03cc4d 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]] }* %x, i32 0, i32 0 +// CHECK: [[X0:%[0-9]+]] = getelementptr {{.*}} { i8*, [[USIZE]] }* %s, i32 0, i32 0 // CHECK: store i8* %0, i8** [[X0]] -// CHECK: [[X1:%[0-9]+]] = getelementptr {{.*}} { i8*, [[USIZE]] }* %x, i32 0, i32 1 +// CHECK: [[X1:%[0-9]+]] = getelementptr {{.*}} { i8*, [[USIZE]] }* %s, i32 0, i32 1 // CHECK: store [[USIZE]] %1, [[USIZE]]* [[X1]] let x = &*s; |
