[PATCH] D36696: [MachineTraceMetrics] Add computeDepth function.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 7 03:51:43 PDT 2017


fhahn updated this revision to Diff 114143.
fhahn added a comment.

Thanks for the comments, I added a updateDepth function that accepts a reference to TBI. I kept the version with MBB as well, as I think there's no way to get TBI for a basic block from outside MachineTraceMetrics (which we should not change IMO). I've also moved the code to set the CP, it should be slightly clearer now.


https://reviews.llvm.org/D36696

Files:
  include/llvm/CodeGen/MachineTraceMetrics.h
  lib/CodeGen/MachineTraceMetrics.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36696.114143.patch
Type: text/x-patch
Size: 6725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170907/861f922e/attachment.bin>


More information about the llvm-commits mailing list