OSDN Git Service

[InstSimplify] simplify add instruction if two operands are negative
authorChen Zheng <shchenz@cn.ibm.com>
Thu, 12 Jul 2018 03:06:04 +0000 (03:06 +0000)
committerChen Zheng <shchenz@cn.ibm.com>
Thu, 12 Jul 2018 03:06:04 +0000 (03:06 +0000)
commit7d5acd8e56ef3314536265837fed5ce53558acd7
treef2ae7670fdcf4a9a2d365261860c774afd2acaf4
parentf831f82f3ec40b3a1ccebd42fe2e38c871c78c6a
[InstSimplify] simplify add instruction if two operands are negative

Differential Revision: https://reviews.llvm.org/D49216

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336881 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ValueTracking.h
lib/Analysis/InstructionSimplify.cpp
lib/Analysis/ValueTracking.cpp
test/Transforms/InstSimplify/add.ll