
Needed manual fixes: 2008-01-06-VoidCast.ll alias.ll @0 type lost pr27703.ll totally confused pr44242.ll phi and update_test_checks pr44245.ll phi and update_test_checks Needed re-running update_test_checks: 2009-01-08-AlignAlloca.ll 2009-02-20-InstCombine-SROA.ll addrspacecast.ll alloca-cast-debuginfo.ll alloca-in-non-alloca-as.ll alloca.ll icmp-gep.ll icmp-custom-dl.ll lifetime-no-null-opt.ll non-integral-pointers.ll pr33689_same_bitwidth.ll pr39908.ll scalable-cast-of-alloc.ll select-cmp-br.ll unpack-fca.ll Converted to generated checks: 2012-6-7-vselect-bitcast.ll
25 lines
653 B
LLVM
25 lines
653 B
LLVM
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-pc-windows-msvc"
|
|
|
|
%class.A = type { ptr }
|
|
|
|
@0 = constant [1 x ptr] zeroinitializer
|
|
|
|
@vtbl = alias ptr, ptr @0
|
|
|
|
define ptr @test(i1 %c1, i1 %c2) {
|
|
; CHECK-LABEL: test
|
|
entry:
|
|
br i1 %c1, label %for.body, label %for.end
|
|
|
|
for.body: ; preds = %for.body, %entry
|
|
br i1 %c2, label %for.body, label %for.end
|
|
|
|
for.end: ; preds = %for.body, %entry
|
|
%A = phi ptr [ @vtbl, %for.body ], [ null, %entry ]
|
|
%B = load ptr, ptr %A
|
|
ret ptr %B
|
|
}
|