[PATCH] D22778: Add Loop Sink pass to reverse the LICM based of basic block frequency.

Dehao Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 16 14:43:44 PDT 2016


danielcdh marked 6 inline comments as done.

================
Comment at: test/Transforms/LICM/loopsink.ll:210
@@ +209,3 @@
+
+.b1:
+  %iv = phi i32 [ %t1, %.b1 ], [ 0, %.preheader ]
----------------
davidxl wrote:
> but this loop will be executed at least once per call of t4, so the loop body frequency should not be lower than entry frequency
So the current algorithm is that even if the frequency is equal (as in this case), we still tend to sink because it will reduce live range.


https://reviews.llvm.org/D22778





More information about the llvm-commits mailing list