diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-10 16:27:36 +0000 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-10 16:27:36 +0000 |
commit | 7a543c3758254b2e45fe21bd4fa368a92310b274 (patch) | |
tree | 04f471c26e3067d026dcb7e3e59cb85017daab79 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 2d02c6df6b2b0ddca24a6bf343154a0573eb955b (diff) | |
download | bcm5719-llvm-7a543c3758254b2e45fe21bd4fa368a92310b274.tar.gz bcm5719-llvm-7a543c3758254b2e45fe21bd4fa368a92310b274.zip |
[InstCombine] ssubo X, C -> saddo X, -C
ssubo X, C is equivalent to saddo X, -C. Make the transformation in
InstCombine and allow the logic implemented for saddo to fold prior
usages of add nsw or sub nsw with constants.
Patch by Dan Robertson.
Differential Revision: https://reviews.llvm.org/D60061
llvm-svn: 358099
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions