aboutsummaryrefslogtreecommitdiff
path: root/clang/lib
diff options
context:
space:
mode:
authorMax Kazantsev <mkazantsev@azul.com>2020-11-26 13:20:02 +0700
committerMax Kazantsev <mkazantsev@azul.com>2020-11-26 13:20:02 +0700
commit14f2ad0e3cc54d5eb254b545a469e8ffdb62b119 (patch)
tree4832ed3ba5969bec1330f7d929d53a264fd40f38 /clang/lib
parent2254e014a9019bf17c3f5cb27c1dc40ca0f2ffce (diff)
downloadllvm-14f2ad0e3cc54d5eb254b545a469e8ffdb62b119.zip
llvm-14f2ad0e3cc54d5eb254b545a469e8ffdb62b119.tar.gz
llvm-14f2ad0e3cc54d5eb254b545a469e8ffdb62b119.tar.bz2
[SCEV] Use isKnownPredicateAt in isLoopBackedgeGuardedByCond
A piece of code in `isLoopBackedgeGuardedByCond` basically duplicates the dominators traversal from `isBlockEntryGuardedByCond` called from `isKnownPredicateAt`, but it's less powerful because it does not give context to `isImpliedCond`. This patch reuses the `isKnownPredicateAt `function there, reducing the amount of code duplication and making it more powerful. Differential Revision: https://reviews.llvm.org/D92152 Reviewed By: skatkov
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions