<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 11, 2014 at 1:02 AM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How much code is there that looks at target specific intrinsics from generic IR passes?</blockquote><div><br></div><div>I suspect quite a bit transitively. ValueTracking, constant folding, instsimplify, instcombine, etc.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Can we move this code into something like TargetTransformInfo?</blockquote></div><br>Yikes, no. That's behind an abstract common interface. All of the above are specialized specific uses of narrow interfaces in relative hot paths of the optimizer.</div></div>