[llvm][nfc] InstructionCostDetail encapsulation
authorMircea Trofin <mtrofin@google.com>
Wed, 8 Apr 2020 21:54:33 +0000 (14:54 -0700)
committerMircea Trofin <mtrofin@google.com>
Thu, 9 Apr 2020 15:21:18 +0000 (08:21 -0700)
commitb4924f01a45c03f4f1e7a504e3ba917a354c1ef9
tree729db01ae60346ec46ddbcc851f751d04020857b
parentd4579b7ef696dc932f3174896ee5de7d235c6462
[llvm][nfc] InstructionCostDetail encapsulation

Ensured initialized fields; encapsulad delta calulations and evaluation
of threshold having had changed; assertion for CostThresholdMap
dereference, to indicate design intent.

Differential Revision: https://reviews.llvm.org/D77762
llvm/lib/Analysis/InlineCost.cpp