AsThe getInstSeqCosttMatCost function calculates the cost of instruction sequence with consideringin two different scale factor, which depends on the RVC instruction,bool CompressionCost argument. it multiplies a factor 100 to distinguish the compressed instruction cost.The getInstSeqCost function uses 100 as multiply factor value, And getIntMatCost should adopt the same scaleno matter RVC is enable.
But the TargetTransformInfo just models the cost with theThen, getIntMatCost is used in getIntImmCost function with CompressionCost = false to get num of instruction as usuals to get Imm cost. So it needs to adjust the cost by / 100 to match.And it's also used in isDesirableToCommuteWithShift with CompressionCost = true to get the cost with balancing the codesize benefit of RVC.