hfinkel added a subscriber: hfinkel. hfinkel added a comment. This needs a test case (either in test/Transforms/LoopUnroll/AArch64 or in test/Transforms/LoopUnroll). Also, why does this logic belong here and not in Expander.isHighCostExpansion? http://reviews.llvm.org/D15559