[PATCH] D18782: Reduce unroll of constant bounds loop with TripCount that is not modulo of unroll factor.

Zia Ansari via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 14:32:15 PDT 2016


zansari added a subscriber: zansari.
zansari added a comment.

I'd prefer we used a different way to control this, like perhaps another option.

The way it is now overloads the documented meaning of "-unroll-runtime", which may be confusing and undesirable/restricting.

For example, if I disable -unroll-runtime to stop unrolling loops that don't have compile time constants (as it's documented to do), with this patch, I'll also stop some loops that DO have compile time constants from being unrolled.

We need to either re-purpose that option, or introduce a new one. I'd prefer the latter for minimal impact.

Zia.


Repository:
  rL LLVM

http://reviews.llvm.org/D18782





More information about the llvm-commits mailing list