Is this a bug?

Andrew Trick atrick at apple.com
Wed Jul 10 20:41:37 PDT 2013


On Jun 25, 2013, at 2:22 PM, Ye, Mei <Mei.Ye at amd.com> wrote:

> In opt.cpp,  target specific analysis is added to module passes but NOT to function passes.
> As a result,  optimizations called from function pass managers do not get the correct TargetTransformInfo.
>  
> Is this a bug or by design?  Attached is a patch that will fix this problem.
>  
> -Mei

Just by inspecting the code it looks like a bug. In the long run, I don’t think the function passes should get TTI. But for now, opt -O# and clang -O# should at least be consistent.

-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130710/85fa17b6/attachment.html>


More information about the llvm-commits mailing list