[InstCombine] add/use overflowing math helper functions; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 14 Sep 2018 21:30:07 +0000 (21:30 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 14 Sep 2018 21:30:07 +0000 (21:30 +0000)
commit46945b9e9d86d66ae054c8ca6ad79b0cd0da8531
treef3166dfce23ba750201e38e2b901953077c76dcc
parentc68f78d5d86e4d3a2e69c5f1ed8d6a17f3e16233
[InstCombine] add/use overflowing math helper functions; NFC

The mul case can already be refactored to use this similar to
rL342278.
The sub case is proposed in D52075.

llvm-svn: 342289
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/lib/Transforms/InstCombine/InstCombineInternal.h