mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Instead, teach SimplifyCFG to trim non-address-taken blocks from
indirectbr destination lists. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111122 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -49,3 +49,16 @@ BB0:
|
||||
ret void
|
||||
}
|
||||
|
||||
; SimplifyCFG should notice that BB0 does not have its address taken and
|
||||
; remove it from entry's successor list.
|
||||
|
||||
; CHECK: indbrtest2
|
||||
; CHECK: entry:
|
||||
; CHECK-NEXT: unreachable
|
||||
|
||||
define void @indbrtest2(i8* %t) {
|
||||
entry:
|
||||
indirectbr i8* %t, [label %BB0, label %BB0]
|
||||
BB0:
|
||||
ret void
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user