llvm/test/Transforms/FunctionAttrs/2010-10-30-volatile.ll
James Molloy 29020c0a61 Revert "Revert "[FunctionAttrs] Identify norecurse functions""
This reapplies this patch, with test fixes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252871 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-12 10:55:20 +00:00

13 lines
216 B
LLVM

; RUN: opt < %s -functionattrs -S | FileCheck %s
; PR8279
@g = constant i32 1
define void @foo() {
; CHECK: void @foo() #0 {
%tmp = load volatile i32, i32* @g
ret void
}
; CHECK: attributes #0 = { norecurse }