calls in nothrow functions can be marked nothrow even if the callee
authorChris Lattner <sabre@nondot.org>
Wed, 13 May 2009 17:39:14 +0000 (17:39 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 13 May 2009 17:39:14 +0000 (17:39 +0000)
commitaab6ec49d24e8ecec766cf90954a3a58c64bf7c4
treed1172f014f0021a86adc76b5fc995f5bf23fce61
parentad6585b021ed88cd91a72712cbc600c903143d7c
calls in nothrow functions can be marked nothrow even if the callee
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
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/nothrow.ll [new file with mode: 0644]