Ignore annotation function calls in cost computation
authorDavid Peixotto <dpeixott@codeaurora.org>
Fri, 26 Sep 2014 17:48:40 +0000 (17:48 +0000)
committerDavid Peixotto <dpeixott@codeaurora.org>
Fri, 26 Sep 2014 17:48:40 +0000 (17:48 +0000)
commitea468dddfe23555914512dff8a5bbdb059309ca2
treee98d6bc666638599900b5e0eebd657f11fbd80ca
parenta7579ed23f0bff880ea6eb6a59f73fa0719cc393
Ignore annotation function calls in cost computation

The annotation instructions are dropped during codegen and have no
impact on size.  In some cases, the annotations were preventing the
unroller from unrolling a loop because the annotation calls were
pushing the cost over the unrolling threshold.

Differential Revision: http://reviews.llvm.org/D5335

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218525 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/TargetTransformInfo.cpp
test/Transforms/LoopUnroll/ignore-annotation-intrinsic-cost.ll [new file with mode: 0644]