[PATCH] D43951: [RFC] llvm-mca: a static performance analysis tool.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 5 02:47:59 PST 2018


RKSimon added inline comments.


================
Comment at: tools/llvm-mca/BackendPrinter.cpp:116
+  TempStream << "[1]    [2]    [3]    [4]    [5]    [6]\tInstructions:\n";
+  for (unsigned Idx = 0; Idx < B.GetNumInstructions(); ++Idx) {
+    const MCInst &Inst = B.GetMCInstFromIndex(Idx);
----------------
(style)
```
for (unsigned Idx = 0, E = B.GetNumInstructions(); Idx < E; ++Idx) {
```
Same throughout the patch


https://reviews.llvm.org/D43951





More information about the llvm-commits mailing list