
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
23 lines
388 B
LLVM
23 lines
388 B
LLVM
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
|
|
|
|
define void @mem() {
|
|
bb:
|
|
br label %bb6
|
|
|
|
bb6:
|
|
%.0 = phi ptr [ undef, %bb ], [ %t2, %bb6 ]
|
|
%tmp = load ptr, ptr %.0, align 8
|
|
%bc = bitcast ptr %tmp to ptr
|
|
%t1 = load ptr, ptr %bc, align 8
|
|
%t2 = bitcast ptr %t1 to ptr
|
|
br label %bb6
|
|
|
|
bb206:
|
|
ret void
|
|
; CHECK: phi
|
|
; CHECK-NEXT: load
|
|
; CHECK-NEXT: load
|
|
; CHECK-NEXT: br
|
|
|
|
}
|