[llvm] [SCEV] Collect and merge loop guards through PHI nodes with multiple incoming values (PR #113915)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 31 05:22:01 PDT 2024


================
@@ -1316,6 +1316,11 @@ class ScalarEvolution {
 
     LoopGuards(ScalarEvolution &SE) : SE(SE) {}
 
+    static LoopGuards
+    collectFromBlock(ScalarEvolution &SE, ScalarEvolution::LoopGuards &Guards,
----------------
fhahn wrote:

If the passed in guards are the. same as the returned ones, is there a need to return them?

Could you also add a doc-comment for the function?

https://github.com/llvm/llvm-project/pull/113915


More information about the llvm-commits mailing list