mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
db3c93e416
This will remove suboptimal branching from the generated ll/sc loops. The extra simplification pass affects a lot of testcases, which have been modified to accommodate this change: either by modifying the test to become immune to the CFG simplification, or (less preferablt) by adding option -hexagon-initial-cfg-clenaup=0. llvm-svn: 338774
15 lines
263 B
LLVM
15 lines
263 B
LLVM
; RUN: llc -march=hexagon -hexagon-initial-cfg-cleanup=0 < %s | FileCheck %s
|
|
|
|
; CHECK: jumpr r{{[0-9]+}}
|
|
|
|
define i32 @check_indirect_br(i8* %target) nounwind {
|
|
entry:
|
|
indirectbr i8* %target, [label %test_label]
|
|
|
|
test_label:
|
|
br label %ret
|
|
|
|
ret:
|
|
ret i32 -1
|
|
}
|