mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-25 14:02:52 +02:00
95f4e0c409
has a reference to it. Unfortunately, that doesn't work for codegen passes since we don't get notified of MBB's being deleted (the original BB stays). Use that fact to our advantage and after printing a function, check if any of the IL BBs corresponds to a symbol that was not printed. This fixes pr11202. llvm-svn: 144674
20 lines
503 B
LLVM
20 lines
503 B
LLVM
; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
|
|
|
|
@bb = constant [1 x i8*] [i8* blockaddress(@main, %l2)]
|
|
|
|
define void @main() {
|
|
entry:
|
|
br label %l1
|
|
|
|
l1: ; preds = %l2, %entry
|
|
%a = zext i1 false to i32
|
|
br label %l2
|
|
|
|
l2: ; preds = %l1
|
|
%b = zext i1 false to i32
|
|
br label %l1
|
|
}
|
|
|
|
; CHECK: .Ltmp1: # Address of block that was removed by CodeGen
|
|
; CHECK: .quad .Ltmp1
|