1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/Transforms/FunctionAttrs/operand-bundles-scc.ll
Sanjoy Das 0a3d627330 [FunctionAttrs] Fix SCC logic around operand bundles
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
2016-02-09 18:40:40 +00:00

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
}