This is an archive of the discontinued LLVM Phabricator instance.

[LoopBoundSplit] Check the condition of the first iteration in pre-loop using isLoopEntryGuardedByCond
AbandonedPublic

Authored by jaykang10 on Sep 13 2021, 4:24 AM.

Details

Summary

The condition of the first iteration in pre-loop can be inferred by isLoopEntryGuardedByCond.

It is a following patch of https://reviews.llvm.org/D109354.

Diff Detail

Event Timeline

jaykang10 created this revision.Sep 13 2021, 4:24 AM
jaykang10 requested review of this revision.Sep 13 2021, 4:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2021, 4:24 AM
jaykang10 edited the summary of this revision. (Show Details)Sep 20 2021, 3:57 AM
mkazantsev added inline comments.Sep 21 2021, 4:32 AM
llvm/lib/Transforms/Scalar/LoopBoundSplit.cpp
67

!isa<SCEVAddRecExpr>(AddRecSCEV) is impossible

jaykang10 added inline comments.Sep 21 2021, 7:41 AM
llvm/lib/Transforms/Scalar/LoopBoundSplit.cpp
67

Ah, let me update it with dyn_cast.

jaykang10 updated this revision to Diff 373933.Sep 21 2021, 7:48 AM

Following comment of @mkazantsev, updated patch.

jaykang10 abandoned this revision.Sep 22 2021, 1:37 AM

This patch is merged into https://reviews.llvm.org/D110060.

Let's close this patch.

https://reviews.llvm.org/D110060 The patch is split into two patches. As one of them, this patch is merged.