<div dir="ltr">Greetings,<div><br></div><div>So the CostModel 'analysis' today isn't actually an analysis at all. It is one of the only analyses which doesn't even have an interface available outside of the .cpp file, so it is literally impossible to use it today.</div><div><br></div><div>The only use is to form tests of TargetTransformInfo, but if that's really the only intent, then I have two somewhat large questions:</div><div><br></div><div>1) Why isn't this just the implementation of the print method for TTI? Should I make it into that?</div><div><br></div><div>2) Why is there so much logic in it? This doesn't really seem like it's *just* testing TTI, it almost seems its duplicating some logic in the vectorizers to ensure that logic behaves correctly.... But if so, that logic should really be de-duplicated into an actual analysis with an API that is used by the vectorizers...</div><div><br></div><div>Anyways, I'm asking because I've ported TTI to the new pass manager, but it the testing is quite weak. I can port CostModel as well, but I don't really know what the right port is given that it is an analysis which can only be used to print things.</div><div><br></div><div>-Chandler</div></div>