Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 225fb74efd98098b08fe641f26a3c16c334ef37a
Choose a base ref
..
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 252cc7d67746099fb215ed2ad20bc7eff662d4ac
Choose a head ref
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/codegen/lib-optimizations/slice_rotate.rs
8 changes: 4 additions & 4 deletions tests/codegen/lib-optimizations/slice_rotate.rs
Original file line number Diff line number Diff line change
@@ -12,10 +12,10 @@ pub fn rotate_left_by_one(slice: &mut [i32]) {
// CHECK-NOT: load
// CHECK-NOT: store
// CHECK-NOT: getelementptr
// CHECK: %[[END:.+]] = getelementptr inbounds i8, ptr %slice.0
// CHECK-NEXT: %[[DIM:.+]].i = getelementptr inbounds i32, ptr %slice.0
// CHECK-NEXT: %[[LAST:.+]] = load i32
// CHECK-NEXT: %[[FIRST:.+]] = shl i64
// CHECK: %[[END:.+]] = getelementptr
// CHECK-NEXT: %[[DIM:.+]].i = getelementptr
// CHECK-NEXT: %[[LAST:.+]] = load
// CHECK-NEXT: %[[FIRST:.+]] = shl
// CHECK-NEXT: call void @llvm.memmove
// CHECK-NEXT: store i32 %[[LAST]], ptr %[[DIM:.+]]
// CHECK-NOT: phi