[llvm-commits] [test-suite] r105015 - /test-suite/trunk/MultiSource/Applications/aha/aha.c

Dale Johannesen dalej at apple.com
Fri May 28 16:14:32 PDT 2010


On May 28, 2010, at 4:00 PMPDT, Dan Gohman wrote:

> Author: djg
> Date: Fri May 28 18:00:20 2010
> New Revision: 105015
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=105015&view=rev
> Log:
> Use static inline instead of inline, to avoid depending on language mode
> and inline level.

Why do we want to do this?  It should work either way, and if performance comparisons look funny because something is inlined differently, that seems like useful information indicating we should look at the inlining heuristics.

> // -------------------- simulate_one_instruction -----------------------
> 
> -inline void
> +static inline void
> simulate_one_instruction(int i)
> {
>    int arg0, arg1, arg2;
> @@ -278,7 +278,7 @@
> 
> // --------------------------- increment -------------------------------
> 
> -inline int
> +static inline int
> increment(void)
> {
> 
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list