----- Original Message -----
> From: "Dmitri Gribenko" <[email protected]>
> To: [email protected]
> Cc: [email protected], [email protected], [email protected]
> Sent: Wednesday, December 5, 2012 5:57:58 PM
> Subject: Re: [PATCH] Invariants (and Assume Aligned) - Clang
> 
> 
>   I don't have more comments, so this looks good to me, but please
>   wait for another review.

Thanks! I will do (this also depends on the LLVM patch(es); and those would 
need to go in first).

 -Hal

> 
> 
> ================
> Comment at: docs/LanguageExtensions.html:1409-1412
> @@ +1408,6 @@
> +
> +<p>The boolean argument to this function is defined to be true. The
> optimizer
> +may analyze the expression used to compute the argument and deduce
> from that
> +analysis information used to optimize the program.
> +</p>
> +
> ----------------
> Same comment as for LLVM intrinsic:
> 
> What about adding explicitly: "If the condition does not hold during
> execution, the behavior is undefined"?
> 
> 
> ================
> Comment at: docs/LanguageExtensions.html:1400
> @@ +1399,3 @@
> +
> +  if (x == 0) // he optimizer may short-circuit this check using the
> invariant.
> +    return do_something();
> ----------------
> typo: he -> the
> 
> 
> http://llvm-reviews.chandlerc.com/D149
> 

-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to