<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/149127>149127</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[DXIL][HLSL] Apply `dx.precise` to operations when `-Gis` is applied
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:DirectX,
HLSL
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
llvm-beanz
</td>
</tr>
</table>
<pre>
We recently added the `-Gis` flag to the DXC driver mode, but we didn't add support for generating the `dx.precise` metadata on DXIL operations, which causes significant behavior differences from DXC.
You can see the observable difference between Clang and DXC [here](https://godbolt.org/z/nooszGoMz).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkkkFvpDgQhX-NuZSCoBo3zYFDpxHZlbKnPWz2WMYFeMZtI9t0T_rXj0CJJpo5WbZcr-rV9yhGMznmVshnIbuM1jT70Fp7uz4pJvfIlNfv7X8MgQd2yb4Dac0a0swgjsXTi4niWMBoaYLk9-fu7QI6mBsHuHrNAi-g1gR3Bm20E1inTQPiuiw-JBh9gIkdB0rGTZ_C-ke-BB5M5E3-yok0JQLvoHv7-xX8sv_3Lm7y99kMMwy0Ro6wGTKjGcglUDzTzfgA2owjB3YDRxiDv25D5qI4i-L8v19hIAeReW_uVeRwI2X5SxUoTndmBxdLbgJyercp5PPMgYXsBJ7mlJYoDmeBvcB-8lp5m3IfJoH9Q2DvvI-PF__PQ2CTZ7o96ObQUMZtWUs8nkp5kNncctmoqilqanRFxUhqIKa6qBVXeBpQZ6bFAmVRl8dSypOUORfFsZQ14elUVYdjLaqCr2RsvlHc-mcmxpXbsmpKrDNLim3cgSMqGr6z0-Jw7kzgIb0JRIEXgfjX67-v20V22Wce1imKqrAmpvhLO5lk9_hsXLZFyOe9VHZwXhb7_ifM5L_gg_vM7muSTARaFmtYZ2uw7W9LNWleVT74q8B-G-HjeFqC_8ZDEtjvXqPA_sPurcWfAQAA__8jXO7_">