mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
aab6ec49d2
is not known to be nothrow. This allows readnone/readonly functions to be deleted even if we don't know whether the callee can throw. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71676 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
234 B
LLVM
9 lines
234 B
LLVM
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep call
|
|
; rdar://6880732
|
|
declare double @t1(i32) readonly
|
|
|
|
define void @t2() nounwind {
|
|
call double @t1(i32 42) ;; dead call even though callee is not nothrow.
|
|
ret void
|
|
}
|