mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
86ef198476
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241887 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
436 B
LLVM
16 lines
436 B
LLVM
; RUN: opt -basicaa -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
|
|
}
|