use valid bits to avoid unnecessary machine trace metric recomputations
authorSanjay Patel <spatel@rotateright.com>
Sat, 4 Jul 2015 15:00:28 +0000 (15:00 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 4 Jul 2015 15:00:28 +0000 (15:00 +0000)
commit2244d521c0c396f2dba10e89bb30d615f0781a7c
tree0f72c3466ac6c74723050068c435f9a0a6597ca3
parent57dee47d17a1ff07293b0c4c8ff272745cdbbbee
use valid bits to avoid unnecessary machine trace metric recomputations

Although this does cut the number of traces recomputed by ~10% for the
test case mentioned in http://reviews.llvm.org/D10460, it doesn't
make a dent in the overall performance. That example needs to be more
selective when invalidating traces.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241393 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineTraceMetrics.cpp