[llvm-commits] [llvm] r140762 - in /llvm/trunk: lib/Transforms/Scalar/LoopStrengthReduce.cpp test/CodeGen/ARM/lsr-on-unrolled-loops.ll test/CodeGen/X86/change-compare-stride-0.ll test/CodeGen/X86/change-compare-stride-1.ll test/CodeGen/X86/iv-users-in-other-loops.ll test/CodeGen/X86/loop-strength-reduce3.ll test/CodeGen/X86/pr3495.ll

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Sep 28 18:45:21 PDT 2011


On Sep 28, 2011, at 6:33 PM, Andrew Trick wrote:

> @@ -3801,6 +3811,12 @@
>   // If loop preparation eliminates all interesting IV users, bail.
>   if (IU.empty()) return;
> 
> +  // Skip nested loops until we can model them better with forulae.
> +  if (!EnableNested && !L->empty()) {
> +    DEBUG(dbgs() << "LSR skipping outer loop " << *L << "\n");
> +    return false;
> +  }
> +
>   // Start collecting data and preparing for the solver.
>   CollectInterestingTypesAndFactors();
>   CollectFixupsAndInitialFormulae();
> 

Clang says constructors shouldn't return a value.

Also, 'forulae'.

/jakob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110928/24593ee9/attachment.html>


More information about the llvm-commits mailing list