<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello All,<br>
<br>
<br>
I am trying to understand the demanded-bits pass. The example in the source code (below) seems quite explicit. In the example, only 16 bits from a 32 bit variable in IR are demanded and therefore the variable is truncated to a 16 bit variable.
<br>
<br>
<pre class="fragment"><span class="comment">%1 = add i32 %x, %y</span>
<a name="l00015"></a><span class="comment">%2 = trunc i32 %1 to i16</span></pre>
<br>
However I was wondering if for example, the addition demanded, say 18 bits, would this pass generate a i18 integer variable? I have not done the experiment, but I would like to know beforehand if this is something that this pass can do.<br>
<br>
<br>
Regards,<br>
Raul. <br>
<br>
<br>
</div>
</body>
</html>