• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -aa-pipeline=basic-aa -passes='print<memoryssa>,verify<memoryssa>' -disable-output < %s 2>&1 | FileCheck %s
2target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
3
4define void @test() {
5entry:
6  br i1 undef, label %split1, label %split2
7
8split1:
9  store i16 undef, i16* undef, align 2
10 br label %merge
11split2:
12 br label %merge
13forwardunreachable:
14  br label %merge
15merge:
16; The forwardunreachable block still needs an entry in the phi node,
17; because it is reverse reachable, so the CFG still has it as a
18; predecessor of the block
19; CHECK:  3 = MemoryPhi({split1,1},{split2,liveOnEntry},{forwardunreachable,liveOnEntry})
20  store i16 undef, i16* undef, align 2
21  ret void
22}
23
24