[InstrSimplify] fold sdiv if two operands are negated and non-overflow
authorChen Zheng <shchenz@cn.ibm.com>
Sat, 21 Jul 2018 12:27:54 +0000 (12:27 +0000)
committerChen Zheng <shchenz@cn.ibm.com>
Sat, 21 Jul 2018 12:27:54 +0000 (12:27 +0000)
commit69bb064539612120250539afb1ee961c698b182b
tree8adf075c3bad159a730f374e891c562fc6af8a97
parent23c2d1c15a9c89f313304c22180fb5cae97211bc
[InstrSimplify] fold sdiv if two operands are negated and non-overflow

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

llvm-svn: 337642
llvm/include/llvm/Analysis/ValueTracking.h
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Analysis/ValueTracking.cpp
llvm/test/Transforms/InstSimplify/sdiv.ll