[InstSimplify] fold srem instruction if its two operands are negated.
authorChen Zheng <shchenz@cn.ibm.com>
Fri, 20 Jul 2018 13:00:47 +0000 (13:00 +0000)
committerChen Zheng <shchenz@cn.ibm.com>
Fri, 20 Jul 2018 13:00:47 +0000 (13:00 +0000)
commitf801d0fea944487132c23dd4c5de58b9b4fbecf0
treed0eba193a8505aac54010e715b454193c3c40859
parentf9adc20aeff83ddb07b3b741099bf441425b787c
[InstSimplify] fold srem instruction if its two operands are negated.

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

llvm-svn: 337545
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/srem.ll