37 lines · plain
1# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass machine-scheduler -verify-machineinstrs -o - %s | FileCheck %s2# RUN: llc -mtriple=aarch64-none-linux-gnu -passes=machine-scheduler -o - %s | FileCheck %s3 4--- |5 define i64 @load_imp-def(ptr nocapture %P, i32 %v) {6 entry:7 %0 = bitcast ptr %P to ptr8 %1 = load i32, ptr %09 %conv = zext i32 %1 to i6410 %arrayidx19 = getelementptr inbounds i64, ptr %P, i64 111 %arrayidx1 = bitcast ptr %arrayidx19 to ptr12 store i32 %v, ptr %arrayidx113 %2 = load i64, ptr %arrayidx1914 %and = and i64 %2, 429496729515 %add = add nuw nsw i64 %and, %conv16 ret i64 %add17 }18...19---20# CHECK-LABEL: name: load_imp-def21# CHECK: bb.0.entry:22# CHECK: LDRWui $x0, 123# CHECK: LDRWui $x0, 024# CHECK: STRWui $w1, $x0, 225name: load_imp-def26tracksRegLiveness: true27body: |28 bb.0.entry:29 liveins: $w1, $x030 $w8 = LDRWui $x0, 1, implicit-def $x8 :: (load (s32) from %ir.0)31 STRWui killed $w1, $x0, 2 :: (store (s32) into %ir.arrayidx1)32 $w9 = LDRWui killed $x0, 0, implicit-def $x9 :: (load (s32) from %ir.arrayidx19, align 8)33 $x0 = ADDXrr killed $x9, killed $x834 RET_ReallyLR implicit $x035...36 37