1 ; RUN: opt -S -memdep -gvn -basicaa < %s | FileCheck %s
2 ; RUN: opt -S -memdep -memdep-block-scan-limit=1 -gvn -basicaa < %s | FileCheck %s --check-prefix=WITH-LIMIT
6 ; WITH-LIMIT-LABEL: @test(
7 ; WITH-LIMIT-CHECK: load
8 ; WITH-LIMIT-CHECK: load
9 define i32 @test(i32* %p) {
10 %1 = load i32, i32* %p
12 %3 = load i32, i32* %p