mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
0a3d627330
FunctionAttrs does an "optimistic" analysis of SCCs as a unit, which means normally it is able to disregard calls from an SCC into itself. However, calls and invokes with operand bundles are allowed to have memory effects not fully described by the memory effects on the call target, so we can't be optimistic around operand-bundled calls from an SCC into itself. llvm-svn: 260244
14 lines
231 B
LLVM
14 lines
231 B
LLVM
; RUN: opt -S -functionattrs < %s | FileCheck %s
|
|
|
|
define void @f() {
|
|
; CHECK-LABEL: define void @f() {
|
|
call void @g() [ "unknown"() ]
|
|
ret void
|
|
}
|
|
|
|
define void @g() {
|
|
; CHECK-LABEL: define void @g() {
|
|
call void @f()
|
|
ret void
|
|
}
|