diff options
author | Max Kazantsev <mkazantsev@azul.com> | 2020-11-26 13:20:02 +0700 |
---|---|---|
committer | Max Kazantsev <mkazantsev@azul.com> | 2020-11-26 13:20:02 +0700 |
commit | 14f2ad0e3cc54d5eb254b545a469e8ffdb62b119 (patch) | |
tree | 4832ed3ba5969bec1330f7d929d53a264fd40f38 /clang/lib | |
parent | 2254e014a9019bf17c3f5cb27c1dc40ca0f2ffce (diff) | |
download | llvm-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