4 <meta charset=
"utf-8" />
6 <link rel='stylesheet' type='text/css' href='style.css'
>
7 <script type=
"text/javascript">
8 /* Simple helper to show/hide the expanded message of a remark. */
9 function toggleExpandedMessage(e) {
10 var FullTextElems = e.parentElement.parentElement.getElementsByClassName("full-info");
11 if (!FullTextElems || FullTextElems.length < 1) {
14 var FullText = FullTextElems[0];
15 if (FullText.style.display == 'none') {
17 FullText.style.display = 'block';
20 FullText.style.display = 'none';
26 <div class="centered">
27 <table class="source">
30 <th style="width: 2%">Line</td>
31 <th style="width: 3%">Hotness</td>
32 <th style="width: 10%">Optimization</td>
33 <th style="width: 70%">Source</td>
34 <th style="width: 15%">Inline Context</td>
40 <td><a name="L1">1</a></td>
43 <td><div class="highlight"><pre>infix operator •: AdditionPrecedence</pre></div></td>
47 <td><a name="L2">2</a></td>
50 <td><div class="highlight"><pre></pre></div></td>
54 <td><a name="L3">3</a></td>
57 <td><div class="highlight"><pre>func • (a: Int, b: Int) -> Int {</pre></div></td>
61 <td><a name="L4">4</a></td>
64 <td><div class="highlight"><pre> return a * b</pre></div></td>
68 <td><a name="L5">5</a></td>
71 <td><div class="highlight"><pre>}</pre></div></td>
75 <td><a name="L6">6</a></td>
78 <td><div class="highlight"><pre></pre></div></td>
82 <td><a name="L7">7</a></td>
85 <td><div class="highlight"><pre>@inline(never)</pre></div></td>
89 <td><a name="L8">8</a></td>
92 <td><div class="highlight"><pre>func g(a: Int) -> Int{</pre></div></td>
96 <td><a name="L9">9</a></td>
99 <td><div class="highlight"><pre> return a + 1</pre></div></td>
103 <td><a name="L10">10</a></td>
106 <td><div class="highlight"><pre>}</pre></div></td>
110 <td><a name="L11">11</a></td>
113 <td><div class="highlight"><pre></pre></div></td>
117 <td><a name="L12">12</a></td>
120 <td><div class="highlight"><pre>let i = g(a: 1 • 2)</pre></div></td>
126 <td class="column-entry-green">sil-inliner</td>
127 <td><pre style="display:inline"> </pre><span class="column-entry-yellow"> <a href="s.swift.html#L3">"s.• infix(_:_:)"</a> inlined into "main" (cost = 2, benefit = 40) </span></td>
128 <td class="column-entry-yellow">main</td>
132 <td><a name="L13">13</a></td>
135 <td><div class="highlight"><pre></pre></div></td>