Commit 6a1a5ba
committed
[InstSimplify] Handle nsz when simplifying X * 0.0
If ValueTracking can guarantee non-NaN and non-INF and the `nsz`
fast-math flag is set, we can simplify X * 0.0 ==> 0.0.
https://alive2.llvm.org/ce/z/XacRQZ1 parent f70e920 commit 6a1a5ba
File tree
2 files changed
+19
-0
lines changed- llvm
- lib/Analysis
- test/Transforms/InstSimplify
2 files changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5844 | 5844 | | |
5845 | 5845 | | |
5846 | 5846 | | |
| 5847 | + | |
| 5848 | + | |
| 5849 | + | |
5847 | 5850 | | |
5848 | 5851 | | |
5849 | 5852 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
214 | 230 | | |
215 | 231 | | |
216 | 232 | | |
| |||
0 commit comments