aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2025-06-17 15:30:08 +0100
committerGitHub <noreply@github.com>2025-06-17 15:30:08 +0100
commit8f797542258f6e682eb251d0851922a1ac08fb44 (patch)
treec5caebbccfe077ccda9ec08d9a316d3ecb0b0930 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent0a7b0c844c59189ad4f5072b73d7dfdfd78e76b7 (diff)
downloadllvm-8f797542258f6e682eb251d0851922a1ac08fb44.zip
llvm-8f797542258f6e682eb251d0851922a1ac08fb44.tar.gz
llvm-8f797542258f6e682eb251d0851922a1ac08fb44.tar.bz2
[SCEV] Better preserve wrapping info in SimplifyICmpOperands for UGE. (#144404)
Update SimplifyICmpOperands to only try subtracting 1 from RHS first, if RHS is an op we can fold the subtract directly into. Otherwise try adding to LHS first, as we can preserve NUW flags. This improves results in a few cases, including the modified test case from berkeley-abc and new code to be added in https://github.com/llvm/llvm-project/pull/128061. Note that there are more cases where the results can be improved by better ordering here which I'll try to investigate as follow-up. PR: https://github.com/llvm/llvm-project/pull/144404
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions