aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/BranchProbability.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-15 08:48:52 +0000
committerNikita Popov <nikita.ppv@gmail.com>2019-06-15 08:48:52 +0000
commit9145562b4879b34ae5c21af27be4162484f9602e (patch)
treef44fecaca2192446e34cccb8ac99c9f36c703e79 /llvm/lib/Support/BranchProbability.cpp
parent0bb4d46b2be5edd58621416de72e995cd6dd7ec4 (diff)
downloadllvm-9145562b4879b34ae5c21af27be4162484f9602e.zip
llvm-9145562b4879b34ae5c21af27be4162484f9602e.tar.gz
llvm-9145562b4879b34ae5c21af27be4162484f9602e.tar.bz2
[SimplifyIndVar] Simplify non-overflowing saturating add/sub
If we can detect that saturating math that depends on an IV cannot overflow, replace it with simple math. This is similar to the CVP optimization from D62703, just based on a different underlying analysis (SCEV vs LVI) that catches different cases. Differential Revision: https://reviews.llvm.org/D62792 llvm-svn: 363489
Diffstat (limited to 'llvm/lib/Support/BranchProbability.cpp')
0 files changed, 0 insertions, 0 deletions