1 ; RUN: opt < %s -aa-pipeline=basic-aa -passes=gvn,instcombine -S | FileCheck %s
3 ; BasicAA was incorrectly concluding that P1 and P2 didn't conflict!
5 define i32 @test(ptr %Ptr, i64 %V) {
6 ; CHECK: sub i32 %X, %Y
7 %P2 = getelementptr i32, ptr %Ptr, i64 1
8 %P1 = getelementptr i32, ptr %Ptr, i64 %V
11 %Y = load i32, ptr %P1