OSDN Git Service

Code that checks WillNotOverflowSignedAdd before creating an Add
authorDan Gohman <gohman@apple.com>
Mon, 26 Oct 2009 22:14:22 +0000 (22:14 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 26 Oct 2009 22:14:22 +0000 (22:14 +0000)
commitfe3595555a2ac3e11c8f39182f4a481e83849f76
tree64580ffcc550864c407efff9ab80756645be4a7b
parent7c44beaf93098fae6db9a5a03799f6c66938db90
Code that checks WillNotOverflowSignedAdd before creating an Add
can safely use the NSW bit on the Add.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85164 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/add-shrink.ll
test/Transforms/InstCombine/add-sitofp.ll