[PATCH] D30207: [ARM] Fix constant islands pass.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 21 12:42:08 PST 2017


efriedma added a comment.

Artificial testcase:

  int a(int *z, int c) {
    unsigned pow = c;
  #pragma unroll(2000)
    for (int i = 0; i < 2000; ++i)
      pow *= c; return pow;
  }

The content of the function doesn't actually matter; you just need a large function which doesn't spill.  See ARMFrameLowering::determineCalleeSaves.


https://reviews.llvm.org/D30207





More information about the llvm-commits mailing list