[llvm-commits] [llvm] r102140 - /llvm/trunk/docs/LangRef.html

Dan Gohman gohman at apple.com
Fri Apr 23 10:18:10 PDT 2010


On Apr 22, 2010, at 4:14 PM, Dan Gohman wrote:
> 
>  // Can we change i from i32 to i64 to eliminate the cast inside the loop?
>  for (int i = 0; i < n; ++i) A[i] *= 0.1;


Actually, as written this loop can be analyzed without nsw. This should
have been "!=" instead of "<".

Dan




More information about the llvm-commits mailing list