<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/78507>78507</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Attributor] Incorrect optimization of math function when attributor module pass is run
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
jdoerfert
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jhuber6
</td>
</tr>
</table>
<pre>
The Attributor module pass currently optimized out this math function incorrectly to always return `NaN`. The reproducer is at https://godbolt.org/z/1P9xTjoab. When the attributor is not run, the function remains correct, when it's run it gets incorrectly removed.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskj9v2zAQxT8NtRwiSLT-edCQNhDQJegQoDMpnkwaFGkcj3GdT19IcGo06MTh8Y7vvR9VSu4UEEfRfhNSnk1EWpBYSCnal0JltpHGs80aqSt0NLfxzSI8M5PTmSPBGk32CBeVEsyZCAP7G8QLu9V9oIGYGdi6BKtiC0sOM7sYwIU5EuG8XeYIyl_VLQEhZwoguupVvYquKmF7jfBC0eQZCVwCxWCZL0kcnoWchJxO0ejouYx0EnL6EHKqfx5_v52j0iX8shiALYJ6WHYJQmSgHIT8vot_bRGuyoUEd3Obft02OBayT9sIOIYTcvonAeEa39GUhRkP5ng4qgLHuq_aVg7N0Bd2nA8dmn7WQ4fNYOSxqVW9yK5TlT7ofmgLN8pKNlVd97Jum6YvWzlgrfp5xqVrF92Jptq8-dL793XLWriUMo790FZ94ZVGn-4UA15hF-8UadxmnnQ-JdFU3iVOjy3s2O_4H0xF-wI_PtN9olR7P3H5wnFvR_3_O7i9sCKTH78Qc2yzLue4CjltTu7H04Xiea992v0nIac9358AAAD__5y152A">