[PATCH] Ignore annotation function calls in cost computation

David Peixotto dpeixott at codeaurora.org
Fri Sep 12 10:43:19 PDT 2014


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.

http://reviews.llvm.org/D5335

Files:
  lib/Analysis/TargetTransformInfo.cpp
  test/Transforms/LoopUnroll/ignore-annotation-intrinsic-cost.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5335.13644.patch
Type: text/x-patch
Size: 10703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140912/58f92597/attachment.bin>


More information about the llvm-commits mailing list