[GreedyRA ORE] Compute ORE stats if extra analysis is enabled
authorSerguei Katkov <serguei.katkov@azul.com>
Tue, 6 Apr 2021 14:32:02 +0000 (21:32 +0700)
committerSerguei Katkov <serguei.katkov@azul.com>
Thu, 8 Apr 2021 07:24:18 +0000 (14:24 +0700)
commit0a1c6637a1e89ca757e69225f6ead27bf151a16b
tree19b9db083d02dff63875c517b93bacf700bc7a77
parent0c36da722aa55535d35d1423c70fc04ab8889090
[GreedyRA ORE] Compute ORE stats if extra analysis is enabled

To save compile time, avoid computation of stats if ORE will not emit it.
The motivation is to add more stats and compute it only if it will dumped.

Reviewers: reames, MatzeB, anemet, thegameg
Reviewed By: reames
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D100010
llvm/lib/CodeGen/RegAllocGreedy.cpp