Skip to content

Commit b56225b

Browse files
committed
Remove redundant cache clear
1 parent 75435a8 commit b56225b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/include/llvm/ADT/GenericCycleInfo.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,7 @@ template <typename ContextT> class GenericCycle {
141141
bool contains(const GenericCycle *C) const;
142142

143143
const GenericCycle *getParentCycle() const { return ParentCycle; }
144-
145-
GenericCycle *getParentCycle() {
146-
clearCache();
147-
return ParentCycle;
148-
}
149-
144+
GenericCycle *getParentCycle() { return ParentCycle; }
150145
unsigned getDepth() const { return Depth; }
151146

152147
/// Return all of the successor blocks of this cycle.

0 commit comments

Comments
 (0)