[PATCH] D11758: [Unroll] Implement a conservative and monotonically increasing cost tracking system during the full unroll heuristic analysis that avoids counting any instruction cost until that instruction becomes "live" through a side-effect or use outside the...

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Thu May 12 23:43:55 PDT 2016


chapuni added a subscriber: chapuni.

================
Comment at: llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp:434
@@ +433,3 @@
+        bool IsFree = Analyzer.visit(I);
+        bool Inserted = InstCostMap.insert({&I, (int)Iteration, IsFree,
+                                            /*IsCounted*/ false})
----------------
FYI, it seems msc doesn't like it.

```
 bool Inserted = InstCostMap.insert({&I, (int)Iteration, (unsigned)IsFree,
                                            /*IsCounted*/ false})

```
would work for me.


Repository:
  rL LLVM

http://reviews.llvm.org/D11758





More information about the llvm-commits mailing list