aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorDavid Sherwood <57997763+david-arm@users.noreply.github.com>2023-12-12 09:10:39 +0000
committerGitHub <noreply@github.com>2023-12-12 09:10:39 +0000
commitceb02379a9636371c4f0c837c2c24164fdf03062 (patch)
tree562533e9e470ec62b1db5bf781204107907b0ed3 /llvm/lib/Transforms/Utils/Local.cpp
parent777b6de7a416e8fdb1aae5d28412e8d6dcc4ab8e (diff)
downloadllvm-ceb02379a9636371c4f0c837c2c24164fdf03062.zip
llvm-ceb02379a9636371c4f0c837c2c24164fdf03062.tar.gz
llvm-ceb02379a9636371c4f0c837c2c24164fdf03062.tar.bz2
[LoopVectorize] Improve algorithm for hoisting runtime checks (#73515)
When attempting to hoist runtime checks out of a loop we currently avoid creating pointer diff checks and prefer to do expanded range checks instead. This gives us the opportunity to hoist runtime checks out of a loop, since these checks are loop invariant. However, in some cases the pointer diff checks would also be loop invariant and so will naturally get hoisted. Therefore, since diff checks are cheaper so we should prefer to use those instead.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions