summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/GVNHoist.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2017-01-04 02:21:31 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2017-01-04 02:21:31 +0000
commit022d2a563bf81be5c0629ebc9193bcb51b88d0a4 (patch)
tree2b8a1f4e902dc5710e64ee52c798aa5132beb317 /llvm/lib/Transforms/Scalar/GVNHoist.cpp
parent6298b44448c9edf852694d2bb9ed35c04325b098 (diff)
downloadbcm5719-llvm-022d2a563bf81be5c0629ebc9193bcb51b88d0a4.tar.gz
bcm5719-llvm-022d2a563bf81be5c0629ebc9193bcb51b88d0a4.zip
[InstCombine] Combine adds across a zext
We can perform the following: (add (zext (add nuw X, C1)), C2) -> (zext (add nuw X, C1+C2)) This is only possible if C2 is negative and C2 is greater than or equal to negative C1. llvm-svn: 290927
Diffstat (limited to 'llvm/lib/Transforms/Scalar/GVNHoist.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud