search for: findfunctionbackedges

Displaying 2 results from an estimated 2 matches for "findfunctionbackedges".

2018 Jul 06
2
Verify that we only get loop metadata on latches
In https://bugs.llvm.org/show_bug.cgi?id=38011 (see also https://reviews.llvm.org/D48721) a problem was revealed related to llvm.loop metadata. The fault was that clang added the !llvm.loop metadata to branches outside of the loop (not only the loop latch). That was not handled properly by some opt passes (simplifying cfg) since it ended up merging branch instructions with different !llvm.loop
2009 Aug 13
0
[LLVMdev] CallGraph - Dominators and Loop Information
Hello everyone, Can LLVM calculate DominatorTree and LoopInfo for call graphs? For example, I need to know if an edge (function1->function2) is a backedge. If there was a DominatorTree for call graphs that would be easy. Since I haven't found, I've copied the algorithm FindFunctionBackedges in BasicBlockUtils.cpp and modified it to use call graphs. Unfortunately, since the call graphs are not reducible, the algorithm does not find backedges correctly. It finds backedges where it shouldn't. Also, I need to know if a function in a call graph is a loop head. If a loop exists, whic...