HomePhabricator

[Loop] Add isRotated method to Loop class.

Authored by kbarton on Dec 3 2019, 11:20 AM.

Description

[Loop] Add isRotated method to Loop class.

Summary:
This patch adds a method to determine if a loop is in rotated form (the latch is
an exiting block). It also modifies the getLoopGuardBranch method to use this
new method. This method can also be used in Loopfusion. Once this patch lands I
will make the corresponding changes there.

Reviewers: jdoerfert, Meinersbur, dmgreen, etiotto, Whitney, fhahn, hfinkel

Reviewed By: Meinersbur

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65958

Details

Committed
kbartonDec 11 2019, 6:43 AM
Reviewer
Meinersbur
Differential Revision
D65958: [Loop] Add isRotated method to Loop class.
Parents
rGdf494f7512b0: [Support] Add TimeTraceScope constructor without detail arg
Branches
Unknown
Tags
Unknown