1; RUN: opt -basicaa -print-memoryssa -verify-memoryssa -analyze < %s 2>&1 | FileCheck %s 2; RUN: opt -aa-pipeline=basic-aa -passes='print<memoryssa>,verify<memoryssa>' -disable-output < %s 2>&1 | FileCheck %s 3; 4; Ensures that atomic loads count as MemoryDefs 5 6define i32 @foo(i32* %a, i32* %b) { 7; CHECK: 1 = MemoryDef(liveOnEntry) 8; CHECK-NEXT: store i32 4 9 store i32 4, i32* %a, align 4 10; CHECK: 2 = MemoryDef(1) 11; CHECK-NEXT: %1 = load atomic i32 12 %1 = load atomic i32, i32* %b acquire, align 4 13; CHECK: MemoryUse(2) 14; CHECK-NEXT: %2 = load i32 15 %2 = load i32, i32* %a, align 4 16 %3 = add i32 %1, %2 17 ret i32 %3 18} 19