source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Analysis/GlobalsModRef/modreftest.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 406 bytes
Line 
1; RUN: opt < %s -basicaa -globals-aa -gvn -S | FileCheck %s
2
3@X = internal global i32 4              ; <i32*> [#uses=2]
4
5define i32 @test(i32* %P) {
6; CHECK:      @test
7; CHECK-NEXT: store i32 12, i32* @X
8; CHECK-NEXT: call void @doesnotmodX()
9; CHECK-NEXT: ret i32 12
10        store i32 12, i32* @X
11        call void @doesnotmodX( )
12        %V = load i32, i32* @X          ; <i32> [#uses=1]
13        ret i32 %V
14}
15
16define void @doesnotmodX() {
17        ret void
18}
Note: See TracBrowser for help on using the repository browser.