On Sep 9, 2013, at 11:15 AM, Robert Lytton <[email protected]> wrote: > Hi Arnold, > > Thank you. > I did ponder about stopping later, but it seemed sensible/reasonable to stop > it earlier but not creating the passes. > I'll make a suitable patch for review... > > > I am curious to know why the TargetTransformInfo is only available via > getAnalysis<> (which is only callable during passes?) > and the SelectionDAG::getTargetTransformInfo()
It is because it needs the Target (TargetLowering) to do its job (in a meaningful way) but we need this information during “opt” passes. The TargetMachine injects this information in "TM->addAnalysisPasses()”. And we have NoTTI when no Target is available (opt). _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
