aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <mkazantsev@azul.com>2020-09-29 15:32:53 +0700
committerMax Kazantsev <mkazantsev@azul.com>2020-09-29 15:53:45 +0700
commit9100bd772d4ff153fd2d5cb13034f4ed8ea2d477 (patch)
tree02bee0f303b3765709e45b23eed21bbc8332b058 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parenteb9f7c28e5fe6d75fed3587023e17f2997c8024b (diff)
downloadllvm-9100bd772d4ff153fd2d5cb13034f4ed8ea2d477.zip
llvm-9100bd772d4ff153fd2d5cb13034f4ed8ea2d477.tar.gz
llvm-9100bd772d4ff153fd2d5cb13034f4ed8ea2d477.tar.bz2
[SCEV][NFC] Introduce isBasicBlockEntryGuardedByCond
Currently, we have `isLoopEntryGuardedByCond` method in SCEV, which checks that some fact is true if we enter the loop. In fact, this is just a particular case of more general concept `isBasicBlockEntryGuardedByCond` applied to given loop's header. In fact, the logic if this code is largely independent on the given loop and only cares code above it. This patch makes this generalization. Now we can query it for any block, and `isBasicBlockEntryGuardedByCond` is just a particular case. Differential Revision: https://reviews.llvm.org/D87828 Reviewed By: fhahn
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions