mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
ae62035cf0
Follow-up to D82607 Revert an accidental change (empty.ll) of D82683
16 lines
437 B
LLVM
16 lines
437 B
LLVM
; RUN: opt -basic-aa -instcombine -S < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: @test_load_combine_aa(
|
|
; CHECK: %[[V:.*]] = load i32, i32* %0
|
|
; CHECK: store i32 0, i32* %3
|
|
; CHECK: store i32 %[[V]], i32* %1
|
|
; CHECK: store i32 %[[V]], i32* %2
|
|
define void @test_load_combine_aa(i32*, i32*, i32*, i32* noalias) {
|
|
%a = load i32, i32* %0
|
|
store i32 0, i32* %3
|
|
%b = load i32, i32* %0
|
|
store i32 %a, i32* %1
|
|
store i32 %b, i32* %2
|
|
ret void
|
|
}
|