1 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-pc-windows-msvc"
6 %class.A = type { ptr }
8 @0 = constant [1 x ptr] zeroinitializer
10 @vtbl = alias ptr, ptr @0
12 define ptr @test(i1 %c1, i1 %c2) {
15 br i1 %c1, label %for.body, label %for.end
17 for.body: ; preds = %for.body, %entry
18 br i1 %c2, label %for.body, label %for.end
20 for.end: ; preds = %for.body, %entry
21 %A = phi ptr [ @vtbl, %for.body ], [ null, %entry ]