xref: /aosp_15_r20/external/llvm/test/Transforms/InstCombine/nothrow.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -instcombine -S | not grep call
2*9880d681SAndroid Build Coastguard Worker; rdar://6880732
3*9880d681SAndroid Build Coastguard Workerdeclare double @t1(i32) readonly
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine void @t2() nounwind {
6*9880d681SAndroid Build Coastguard Worker  call double @t1(i32 42)  ;; dead call even though callee is not nothrow.
7*9880d681SAndroid Build Coastguard Worker  ret void
8*9880d681SAndroid Build Coastguard Worker}
9