mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 21:50:50 +00:00
23b546ba0d
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260244 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|