[InstCombine] Use m_c_Add to shorten some code. Add testcases for this fold since...
authorCraig Topper <craig.topper@gmail.com>
Mon, 10 Apr 2017 16:59:40 +0000 (16:59 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 10 Apr 2017 16:59:40 +0000 (16:59 +0000)
commit98851adc2ae1b9379cec011dfe71e9ed07281e41
treeaac93148e724a59aa28b83f4aeda9914d92641d4
parentb6702eaec3bc0cbf16450829f832f4ba4cc73b04
[InstCombine] Use m_c_Add to shorten some code. Add testcases for this fold since they were missing. NFC

llvm-svn: 299853
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/sub.ll